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 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 PipesReporterBase
acceptMethods inherited from class AbstractTikaExtension
getExtensionConfigMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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- Parameters:
totalCountResult-
-
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.- Parameters:
t-
-
error
Description copied from interface:PipesReporterThis is called if the process has crashed. Implementers should not rely on close() to be called after this.- Parameters:
msg-
-
close
- Throws:
IOException
-