Package org.apache.tika.eval.app.db
Class DBBuffer
- java.lang.Object
-
- org.apache.tika.eval.app.db.DBBuffer
-
public class DBBuffer extends Object
-
-
Constructor Summary
Constructors Constructor Description DBBuffer(Connection connection, String tableName, String idColumnName, String valueColumnName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
getId(String key)
int
getNumWrites()
void
write(int id, String value)
-
-
-
Constructor Detail
-
DBBuffer
public DBBuffer(Connection connection, String tableName, String idColumnName, String valueColumnName) throws SQLException
- Throws:
SQLException
-
-
Method Detail
-
write
public void write(int id, String value) throws RuntimeException
- Throws:
RuntimeException
-
close
public void close() throws SQLException
- Throws:
SQLException
-
getId
public int getId(String key)
-
getNumWrites
public int getNumWrites()
-
-