List<E> hosts
ElasticsearchEmitter<T> emitter
org.apache.flink.connector.elasticsearch.sink.BulkProcessorConfig buildBulkProcessorConfig
org.apache.flink.connector.elasticsearch.sink.BulkProcessorBuilderFactory bulkProcessorBuilderFactory
org.apache.flink.connector.elasticsearch.sink.NetworkClientConfig networkClientConfig
org.apache.flink.connector.base.DeliveryGuarantee deliveryGuarantee
String index
Integer bulkProcessorFlushMaxActions
Integer bulkProcessorFlushMaxSizeMb
Long bulkProcessorFlushIntervalMillis
ElasticsearchSinkBase.BulkFlushBackoffPolicy bulkProcessorFlushBackoffPolicy
Map<K,V> userConfig
For org.elasticsearch.client.transport.TransportClient based implementations, this
config map would also contain Elasticsearch-shipped configuration, and therefore this config
map would also be forwarded when creating the Elasticsearch client.
ElasticsearchSinkFunction<T> elasticsearchSinkFunction
ActionRequests from
each incoming element.ActionRequestFailureHandler failureHandler
ActionRequests.boolean flushOnCheckpoint
ElasticsearchApiCallBridge<C extends AutoCloseable> callBridge
AtomicLong numPendingRequests
ElasticsearchSinkBase.flushOnCheckpoint is true.
This is incremented whenever the user adds (or re-adds through the ActionRequestFailureHandler) requests to the RequestIndexer. It is decremented for
each completed request of a bulk request, in BulkProcessor.Listener#afterBulk(long,
BulkRequest, BulkResponse) and BulkProcessor.Listener#afterBulk(long, BulkRequest,
Throwable).
AtomicReference<V> failureThrowable
BulkProcessor.Listener if a Throwable was thrown
in callbacks and the user considered it should fail the sink via the ActionRequestFailureHandler.onFailure(ActionRequest, Throwable, int, RequestIndexer) method.
Errors will be checked and rethrown before processing each input element, and when the sink is closed.
ElasticsearchSinkBase.FlushBackoffType backoffType
int maxRetryCount
long delayMillis
String index
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.