Class KafkaEmitter
java.lang.Object
org.apache.tika.pipes.emitter.AbstractEmitter
org.apache.tika.pipes.emitter.kafka.KafkaEmitter
- All Implemented Interfaces:
Initializable
,Emitter
Emits the now-parsed documents into a specified Apache Kafka topic.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkInitialization
(InitializableProblemHandler problemHandler) void
emit
(String emitKey, List<Metadata> metadataList, ParseContext parseContext) void
initialize
(Map<String, Param> params) void
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
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
-
Constructor Details
-
KafkaEmitter
public KafkaEmitter()
-
-
Method Details
-
setBootstrapServers
-
setAcks
-
setLingerMs
-
setBatchSize
public void setBatchSize(int batchSize) -
setBufferMemory
-
setClientId
-
setCompressionType
-
setConnectionsMaxIdleMs
-
setDeliveryTimeoutMs
-
setEnableIdempotence
-
setInterceptorClasses
-
setMaxBlockMs
-
setMaxInFlightRequestsPerConnection
-
setMaxRequestSize
-
setMetadataMaxAgeMs
-
setRequestTimeoutMs
-
setRetries
-
setRetryBackoffMs
-
setTransactionTimeoutMs
-
setTransactionalId
-
setKeySerializer
-
setValueSerializer
-
setTopic
-
emit
public void emit(String emitKey, List<Metadata> metadataList, ParseContext parseContext) throws IOException, TikaEmitterException - Specified by:
emit
in interfaceEmitter
- Throws:
IOException
TikaEmitterException
-
initialize
- 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
-