public abstract class AbstractEmitter extends Object implements Emitter
| Constructor and Description |
|---|
AbstractEmitter() |
| Modifier and Type | Method and Description |
|---|---|
void |
emit(List<? extends EmitData> emitData)
The default behavior is to call
Emitter.emit(String, List) on each item. |
String |
getName() |
void |
setName(String name) |
public void setName(String name)
public void emit(List<? extends EmitData> emitData) throws IOException, TikaEmitterException
Emitter.emit(String, List) on each item.
Some implementations, e.g. Solr/ES/vespa, can benefit from subclassing this and
emitting a bunch of docs at once.emit in interface EmitteremitData - IOExceptionTikaEmitterExceptionCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.