Package org.apache.tika.parser.sqlite3
Class SQLite3TableReader
- java.lang.Object
-
- org.apache.tika.parser.jdbc.JDBCTableReader
-
- org.apache.tika.parser.sqlite3.SQLite3TableReader
-
public class SQLite3TableReader extends JDBCTableReader
Concrete class for SQLLite table parsing. This overrides column type handling from JDBCRowHandler. For now, this silently skips cells of type CLOB, because xerial's jdbc connector does not currently support them.
-
-
Constructor Summary
Constructors Constructor Description SQLite3TableReader(Connection connection, String tableName, EmbeddedDocumentUtil embeddedDocumentUtil)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Blob
getBlob(ResultSet resultSet, int columnIndex, Metadata m)
protected void
handleClob(String tableName, String fieldName, int rowNum, ResultSet resultSet, int columnIndex, ContentHandler handler, ParseContext context)
No-op for now inSQLite3TableReader
.-
Methods inherited from class org.apache.tika.parser.jdbc.JDBCTableReader
addAllCharacters, getHeaders, getTableName, handleBlob, handleDate, handleInteger, handleTimeStamp, nextRow
-
-
-
-
Constructor Detail
-
SQLite3TableReader
public SQLite3TableReader(Connection connection, String tableName, EmbeddedDocumentUtil embeddedDocumentUtil)
-
-
Method Detail
-
handleClob
protected void handleClob(String tableName, String fieldName, int rowNum, ResultSet resultSet, int columnIndex, ContentHandler handler, ParseContext context) throws SQLException, IOException, SAXException
No-op for now inSQLite3TableReader
.- Overrides:
handleClob
in classJDBCTableReader
- Parameters:
tableName
-fieldName
-rowNum
-resultSet
-columnIndex
-handler
-context
-- Throws:
SQLException
IOException
SAXException
-
getBlob
protected Blob getBlob(ResultSet resultSet, int columnIndex, Metadata m) throws SQLException
- Overrides:
getBlob
in classJDBCTableReader
- Parameters:
resultSet
- result set to grab value fromcolumnIndex
- index in result setm
- metadata to populate or use for each implementation- Returns:
- the blob or
null
if the value was null - Throws:
SQLException
-
-