Class JDBCPipesReporter
java.lang.Object
org.apache.tika.plugins.AbstractTikaExtension
org.apache.tika.pipes.reporters.PipesReporterBase
org.apache.tika.pipes.reporter.jdbc.JDBCPipesReporter
- All Implemented Interfaces:
Closeable,AutoCloseable,PipesReporter,TikaExtension
This is an initial draft of a JDBCPipesReporter. This will drop
the tika_status table with each run. If you'd like different behavior,
please open a ticket on our JIRA!
-
Field Summary
FieldsFields inherited from class org.apache.tika.plugins.AbstractTikaExtension
pluginConfig -
Constructor Summary
ConstructorsConstructorDescriptionJDBCPipesReporter(ExtensionConfig pluginConfig, JDBCPipesReporterConfig config) -
Method Summary
Modifier and TypeMethodDescriptionstatic JDBCPipesReporterbuild(ExtensionConfig pluginConfig) voidclose()voidThis is called if the process has crashed.voidThis is called if the process has crashed.voidreport(FetchEmitTuple t, PipesResult result, long elapsed) voidreport(TotalCountResult totalCountResult) Make sure to overridePipesReporter.supportsTotalCount()to returntruebooleanOverride this if your reporter supports total count.Methods inherited from class org.apache.tika.pipes.reporters.PipesReporterBase
acceptMethods inherited from class org.apache.tika.plugins.AbstractTikaExtension
getExtensionConfigMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tika.plugins.TikaExtension
getExtensionConfig
-
Field Details
-
TABLE_NAME
- See Also:
-
-
Constructor Details
-
JDBCPipesReporter
public JDBCPipesReporter(ExtensionConfig pluginConfig, JDBCPipesReporterConfig config) throws TikaConfigException - Throws:
TikaConfigException
-
-
Method Details
-
build
public static JDBCPipesReporter build(ExtensionConfig pluginConfig) throws TikaConfigException, IOException - Throws:
TikaConfigExceptionIOException
-
report
-
report
Description copied from interface:PipesReporterMake sure to overridePipesReporter.supportsTotalCount()to returntrue -
supportsTotalCount
public boolean supportsTotalCount()Description copied from interface:PipesReporterOverride this if your reporter supports total count.- Returns:
falseas the baseline implementation
-
error
Description copied from interface:PipesReporterThis is called if the process has crashed. Implementers should not rely on close() to be called after this. -
error
Description copied from interface:PipesReporterThis is called if the process has crashed. Implementers should not rely on close() to be called after this. -
close
- Throws:
IOException
-