Class ESPipesReporter
java.lang.Object
org.apache.tika.plugins.AbstractTikaExtension
org.apache.tika.pipes.reporters.PipesReporterBase
org.apache.tika.pipes.reporter.es.ESPipesReporter
- All Implemented Interfaces:
Closeable,AutoCloseable,PipesReporter,TikaExtension
-
Field Summary
FieldsFields inherited from class org.apache.tika.plugins.AbstractTikaExtension
pluginConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ESPipesReporterbuild(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
-
DEFAULT_PARSE_TIME_KEY
- See Also:
-
DEFAULT_PARSE_STATUS_KEY
- See Also:
-
DEFAULT_EXIT_VALUE_KEY
- See Also:
-
-
Constructor Details
-
ESPipesReporter
public ESPipesReporter(ExtensionConfig pluginConfig, ESReporterConfig config) throws TikaConfigException - Throws:
TikaConfigException
-
-
Method Details
-
build
public static ESPipesReporter 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
-