Package org.apache.tika.eval.app.io
Class DBWriter
java.lang.Object
org.apache.tika.eval.app.io.DBWriter
- All Implemented Interfaces:
IDBWriter
This is still in its early stages. The idea is to
get something working with h2 and then add to that
as necessary.
Beware, this deletes the db file with each initialization.
Each thread must construct its own DBWriter because each DBWriter creates its own PreparedStatements at initialization.
-
Constructor Summary
ConstructorDescriptionDBWriter
(Connection connection, List<TableInfo> tableInfos, JDBCUtil dbUtil, MimeBuffer mimeBuffer) -
Method Summary
-
Constructor Details
-
DBWriter
public DBWriter(Connection connection, List<TableInfo> tableInfos, JDBCUtil dbUtil, MimeBuffer mimeBuffer) throws IOException, SQLException - Throws:
IOException
SQLException
-
-
Method Details
-
getMimeId
-
writeRow
- Specified by:
writeRow
in interfaceIDBWriter
- Throws:
IOException
-
close
This closes the writer by executing batch and committing changes. This DOES NOT close the connection- Specified by:
close
in interfaceIDBWriter
- Throws:
IOException
-