Package org.apache.tika.pipes.emitter
Class AbstractEmitter
- java.lang.Object
-
- org.apache.tika.pipes.emitter.AbstractEmitter
-
- All Implemented Interfaces:
Emitter
- Direct Known Subclasses:
AZBlobEmitter
,FileSystemEmitter
,GCSEmitter
,JDBCEmitter
,KafkaEmitter
,OpenSearchEmitter
,S3Emitter
,SolrEmitter
public abstract class AbstractEmitter extends Object implements Emitter
-
-
Constructor Summary
Constructors Constructor Description AbstractEmitter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
emit(List<? extends EmitData> emitData)
The default behavior is to callEmitter.emit(String, List, ParseContext)
on each item.String
getName()
void
setName(String name)
-
-
-
Method Detail
-
setName
public void setName(String name)
-
emit
public void emit(List<? extends EmitData> emitData) throws IOException, TikaEmitterException
The default behavior is to callEmitter.emit(String, List, ParseContext)
on each item. Some implementations, e.g. Solr/ES/vespa, can benefit from subclassing this and emitting a bunch of docs at once.- Specified by:
emit
in interfaceEmitter
- Parameters:
emitData
-- Throws:
IOException
TikaEmitterException
-
-