Class NoOpReporter
java.lang.Object
org.apache.tika.pipes.core.reporter.NoOpReporter
- All Implemented Interfaces:
Closeable,AutoCloseable,PipesReporter,TikaExtension
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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.
-
Field Details
-
NO_OP
-
-
Constructor Details
-
NoOpReporter
public NoOpReporter()
-
-
Method Details
-
report
- Specified by:
reportin interfacePipesReporter
-
report
Description copied from interface:PipesReporterMake sure to overridePipesReporter.supportsTotalCount()to returntrue- Specified by:
reportin interfacePipesReporter- Parameters:
totalCountResult-
-
supportsTotalCount
public boolean supportsTotalCount()Description copied from interface:PipesReporterOverride this if your reporter supports total count.- Specified by:
supportsTotalCountin interfacePipesReporter- 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.- Specified by:
errorin interfacePipesReporter- 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.- Specified by:
errorin interfacePipesReporter- Parameters:
msg-
-
getExtensionConfig
- Specified by:
getExtensionConfigin interfaceTikaExtension
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-