Class OpenSearchPipesReporter
java.lang.Object
org.apache.tika.plugins.AbstractTikaExtension
org.apache.tika.pipes.reporters.PipesReporterBase
org.apache.tika.pipes.reporter.opensearch.OpenSearchPipesReporter
- All Implemented Interfaces:
Closeable,AutoCloseable,PipesReporter,TikaExtension
As of the 2.5.0 release, this is ALPHA version. There may be breaking changes
in the future.
-
Field Summary
FieldsFields inherited from class org.apache.tika.plugins.AbstractTikaExtension
pluginConfig -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchPipesReporter(ExtensionConfig pluginConfig, OpenSearchReporterConfig config) -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenSearchPipesReporterbuild(ExtensionConfig pluginConfig) voidclose()voidThis is called if the process has crashed.voidThis is called if the process has crashed.voidinit()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
-
DEFAULT_PARSE_STATUS_KEY
-
DEFAULT_EXIT_VALUE_KEY
-
-
Constructor Details
-
OpenSearchPipesReporter
public OpenSearchPipesReporter(ExtensionConfig pluginConfig, OpenSearchReporterConfig config) throws TikaConfigException - Throws:
TikaConfigException
-
-
Method Details
-
build
public static OpenSearchPipesReporter 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. -
init
- Throws:
TikaConfigException
-
close
- Throws:
IOException
-