public class KafkaPipesIterator extends PipesIterator implements Initializable
COMPLETED_SEMAPHORE, DEFAULT_MAX_WAIT_MS, DEFAULT_QUEUE_SIZE
Constructor and Description |
---|
KafkaPipesIterator() |
Modifier and Type | Method and Description |
---|---|
void |
checkInitialization(InitializableProblemHandler problemHandler) |
protected void |
enqueue() |
void |
initialize(Map<String,Param> params) |
void |
setAutoOffsetReset(String autoOffsetReset) |
void |
setBootstrapServers(String bootstrapServers) |
void |
setEmitMax(int emitMax)
If the kafka pipe iterator will keep polling for more documents until it returns an empty result.
|
void |
setGroupId(String groupId) |
void |
setGroupInitialRebalanceDelayMs(int groupInitialRebalanceDelayMs) |
void |
setKeySerializer(String keySerializer) |
void |
setPollDelayMs(int pollDelayMs) |
void |
setTopic(String topic) |
void |
setValueSerializer(String valueSerializer) |
build, call, getEmitterName, getFetcherName, getHandlerConfig, getOnParseException, iterator, setEmitterName, setFetcherName, setHandlerType, setMaxEmbeddedResources, setMaxWaitMs, setOnParseException, setOnParseException, setParseMode, setParseMode, setQueueSize, setWriteLimit, tryToAdd
buildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettings
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
@Field public void setPollDelayMs(int pollDelayMs)
@Field public void setGroupInitialRebalanceDelayMs(int groupInitialRebalanceDelayMs)
@Field public void setEmitMax(int emitMax)
public void initialize(Map<String,Param> params)
initialize
in interface Initializable
initialize
in class PipesIterator
params
- params to use for initializationpublic void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException
checkInitialization
in interface Initializable
checkInitialization
in class PipesIterator
problemHandler
- if there is a problem and no
custom initializableProblemHandler has been configured
via Initializable parameters,
this is called to respond.TikaConfigException
protected void enqueue() throws InterruptedException, TimeoutException
enqueue
in class PipesIterator
InterruptedException
TimeoutException
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.