@Internal public class Elasticsearch7ApiCallBridge extends Object implements org.apache.flink.streaming.connectors.elasticsearch.ElasticsearchApiCallBridge<org.elasticsearch.client.RestHighLevelClient>
ElasticsearchApiCallBridge for Elasticsearch 7 and later versions.| Modifier and Type | Method and Description |
|---|---|
void |
configureBulkProcessorBackoff(org.elasticsearch.action.bulk.BulkProcessor.Builder builder,
org.apache.flink.streaming.connectors.elasticsearch.ElasticsearchSinkBase.BulkFlushBackoffPolicy flushBackoffPolicy) |
org.elasticsearch.action.bulk.BulkProcessor.Builder |
createBulkProcessorBuilder(org.elasticsearch.client.RestHighLevelClient client,
org.elasticsearch.action.bulk.BulkProcessor.Listener listener) |
org.apache.flink.streaming.connectors.elasticsearch.RequestIndexer |
createBulkProcessorIndexer(org.elasticsearch.action.bulk.BulkProcessor bulkProcessor,
boolean flushOnCheckpoint,
AtomicLong numPendingRequestsRef) |
org.elasticsearch.client.RestHighLevelClient |
createClient(Map<String,String> clientConfig) |
Throwable |
extractFailureCauseFromBulkItemResponse(org.elasticsearch.action.bulk.BulkItemResponse bulkItemResponse) |
void |
verifyClientConnection(org.elasticsearch.client.RestHighLevelClient client) |
public org.elasticsearch.client.RestHighLevelClient createClient(Map<String,String> clientConfig)
createClient in interface org.apache.flink.streaming.connectors.elasticsearch.ElasticsearchApiCallBridge<org.elasticsearch.client.RestHighLevelClient>public org.elasticsearch.action.bulk.BulkProcessor.Builder createBulkProcessorBuilder(org.elasticsearch.client.RestHighLevelClient client,
org.elasticsearch.action.bulk.BulkProcessor.Listener listener)
createBulkProcessorBuilder in interface org.apache.flink.streaming.connectors.elasticsearch.ElasticsearchApiCallBridge<org.elasticsearch.client.RestHighLevelClient>public Throwable extractFailureCauseFromBulkItemResponse(org.elasticsearch.action.bulk.BulkItemResponse bulkItemResponse)
extractFailureCauseFromBulkItemResponse in interface org.apache.flink.streaming.connectors.elasticsearch.ElasticsearchApiCallBridge<org.elasticsearch.client.RestHighLevelClient>public void configureBulkProcessorBackoff(org.elasticsearch.action.bulk.BulkProcessor.Builder builder,
@Nullable
org.apache.flink.streaming.connectors.elasticsearch.ElasticsearchSinkBase.BulkFlushBackoffPolicy flushBackoffPolicy)
configureBulkProcessorBackoff in interface org.apache.flink.streaming.connectors.elasticsearch.ElasticsearchApiCallBridge<org.elasticsearch.client.RestHighLevelClient>public org.apache.flink.streaming.connectors.elasticsearch.RequestIndexer createBulkProcessorIndexer(org.elasticsearch.action.bulk.BulkProcessor bulkProcessor,
boolean flushOnCheckpoint,
AtomicLong numPendingRequestsRef)
createBulkProcessorIndexer in interface org.apache.flink.streaming.connectors.elasticsearch.ElasticsearchApiCallBridge<org.elasticsearch.client.RestHighLevelClient>public void verifyClientConnection(org.elasticsearch.client.RestHighLevelClient client)
throws IOException
verifyClientConnection in interface org.apache.flink.streaming.connectors.elasticsearch.ElasticsearchApiCallBridge<org.elasticsearch.client.RestHighLevelClient>IOExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.