Class KafkaPipesIterator
- java.lang.Object
- 
- org.apache.tika.config.ConfigBase
- 
- org.apache.tika.pipes.pipesiterator.PipesIterator
- 
- org.apache.tika.pipes.pipesiterator.kafka.KafkaPipesIterator
 
 
 
- 
- All Implemented Interfaces:
- Iterable<FetchEmitTuple>,- Callable<Integer>,- Initializable
 
 public class KafkaPipesIterator extends PipesIterator implements Initializable 
- 
- 
Field Summary- 
Fields inherited from class org.apache.tika.pipes.pipesiterator.PipesIteratorCOMPLETED_SEMAPHORE, DEFAULT_MAX_WAIT_MS, DEFAULT_QUEUE_SIZE
 
- 
 - 
Constructor SummaryConstructors Constructor Description KafkaPipesIterator()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckInitialization(InitializableProblemHandler problemHandler)protected voidenqueue()voidinitialize(Map<String,Param> params)voidsetAutoOffsetReset(String autoOffsetReset)voidsetBootstrapServers(String bootstrapServers)voidsetEmitMax(int emitMax)If the kafka pipe iterator will keep polling for more documents until it returns an empty result.voidsetGroupId(String groupId)voidsetGroupInitialRebalanceDelayMs(int groupInitialRebalanceDelayMs)voidsetKeySerializer(String keySerializer)voidsetPollDelayMs(int pollDelayMs)voidsetTopic(String topic)voidsetValueSerializer(String valueSerializer)- 
Methods inherited from class org.apache.tika.pipes.pipesiterator.PipesIteratorbuild, call, getEmitterName, getFetcherName, getHandlerConfig, getOnParseException, iterator, setEmitterName, setFetcherName, setHandlerType, setMaxEmbeddedResources, setMaxWaitMs, setOnParseException, setOnParseException, setParseMode, setParseMode, setQueueSize, setWriteLimit, tryToAdd
 - 
Methods inherited from class org.apache.tika.config.ConfigBasebuildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettings
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.lang.IterableforEach, spliterator
 
- 
 
- 
- 
- 
Method Detail- 
setPollDelayMs@Field public void setPollDelayMs(int pollDelayMs) 
 - 
setGroupInitialRebalanceDelayMs@Field public void setGroupInitialRebalanceDelayMs(int groupInitialRebalanceDelayMs) 
 - 
setEmitMax@Field public void setEmitMax(int emitMax) If the kafka pipe iterator will keep polling for more documents until it returns an empty result. If you set emitMax is set to > 0, it will stop polling if the number of documents you have emitted so far > emitMax.
 - 
initializepublic void initialize(Map<String,Param> params) - Specified by:
- initializein interface- Initializable
- Overrides:
- initializein class- PipesIterator
- Parameters:
- params- params to use for initialization
 
 - 
checkInitializationpublic void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException - Specified by:
- checkInitializationin interface- Initializable
- Overrides:
- checkInitializationin class- PipesIterator
- Parameters:
- problemHandler- if there is a problem and no custom initializableProblemHandler has been configured via Initializable parameters, this is called to respond.
- Throws:
- TikaConfigException
 
 - 
enqueueprotected void enqueue() throws InterruptedException, TimeoutException- Specified by:
- enqueuein class- PipesIterator
- Throws:
- InterruptedException
- TimeoutException
 
 
- 
 
-