Class KafkaEmitter
- java.lang.Object
-
- org.apache.tika.pipes.emitter.AbstractEmitter
-
- org.apache.tika.pipes.emitter.kafka.KafkaEmitter
-
- All Implemented Interfaces:
Initializable
,Emitter
public class KafkaEmitter extends AbstractEmitter implements Initializable
Emits the now-parsed documents into a specified Apache Kafka topic.
-
-
Constructor Summary
Constructors Constructor Description KafkaEmitter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkInitialization(InitializableProblemHandler problemHandler)
void
emit(String emitKey, List<Metadata> metadataList)
void
initialize(Map<String,Param> params)
void
setAcks(String acks)
void
setBatchSize(int batchSize)
void
setBootstrapServers(String bootstrapServers)
void
setBufferMemory(int bufferMemory)
void
setClientId(String clientId)
void
setCompressionType(String compressionType)
void
setConnectionsMaxIdleMs(int connectionsMaxIdleMs)
void
setDeliveryTimeoutMs(int deliveryTimeoutMs)
void
setEnableIdempotence(boolean enableIdempotence)
void
setInterceptorClasses(String interceptorClasses)
void
setKeySerializer(String keySerializer)
void
setLingerMs(int lingerMs)
void
setMaxBlockMs(int maxBlockMs)
void
setMaxInFlightRequestsPerConnection(int maxInFlightRequestsPerConnection)
void
setMaxRequestSize(int maxRequestSize)
void
setMetadataMaxAgeMs(int metadataMaxAgeMs)
void
setRequestTimeoutMs(int requestTimeoutMs)
void
setRetries(int retries)
void
setRetryBackoffMs(int retryBackoffMs)
void
setTopic(String topic)
void
setTransactionalId(String transactionalId)
void
setTransactionTimeoutMs(int transactionTimeoutMs)
void
setValueSerializer(String valueSerializer)
-
Methods inherited from class org.apache.tika.pipes.emitter.AbstractEmitter
emit, getName, setName
-
-
-
-
Method Detail
-
setLingerMs
@Field public void setLingerMs(int lingerMs)
-
setBatchSize
public void setBatchSize(int batchSize)
-
setBufferMemory
@Field public void setBufferMemory(int bufferMemory)
-
setConnectionsMaxIdleMs
@Field public void setConnectionsMaxIdleMs(int connectionsMaxIdleMs)
-
setDeliveryTimeoutMs
@Field public void setDeliveryTimeoutMs(int deliveryTimeoutMs)
-
setEnableIdempotence
@Field public void setEnableIdempotence(boolean enableIdempotence)
-
setMaxBlockMs
@Field public void setMaxBlockMs(int maxBlockMs)
-
setMaxInFlightRequestsPerConnection
@Field public void setMaxInFlightRequestsPerConnection(int maxInFlightRequestsPerConnection)
-
setMaxRequestSize
@Field public void setMaxRequestSize(int maxRequestSize)
-
setMetadataMaxAgeMs
@Field public void setMetadataMaxAgeMs(int metadataMaxAgeMs)
-
setRequestTimeoutMs
@Field public void setRequestTimeoutMs(int requestTimeoutMs)
-
setRetries
@Field public void setRetries(int retries)
-
setRetryBackoffMs
@Field public void setRetryBackoffMs(int retryBackoffMs)
-
setTransactionTimeoutMs
@Field public void setTransactionTimeoutMs(int transactionTimeoutMs)
-
emit
public void emit(String emitKey, List<Metadata> metadataList) throws IOException, TikaEmitterException
- Specified by:
emit
in interfaceEmitter
- Throws:
IOException
TikaEmitterException
-
initialize
public void initialize(Map<String,Param> params) throws TikaConfigException
- Specified by:
initialize
in interfaceInitializable
- Parameters:
params
- params to use for initialization- Throws:
TikaConfigException
-
checkInitialization
public void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException
- Specified by:
checkInitialization
in interfaceInitializable
- Parameters:
problemHandler
- if there is a problem and no custom initializableProblemHandler has been configured via Initializable parameters, this is called to respond.- Throws:
TikaConfigException
-
-