Class Elasticsearch7ApiCallBridge
- java.lang.Object
-
- org.apache.flink.streaming.connectors.elasticsearch7.Elasticsearch7ApiCallBridge
-
- All Implemented Interfaces:
Serializable,org.apache.flink.streaming.connectors.elasticsearch.ElasticsearchApiCallBridge<org.elasticsearch.client.RestHighLevelClient>
@Internal public class Elasticsearch7ApiCallBridge extends Object implements org.apache.flink.streaming.connectors.elasticsearch.ElasticsearchApiCallBridge<org.elasticsearch.client.RestHighLevelClient>
Implementation ofElasticsearchApiCallBridgefor Elasticsearch 7 and later versions.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureBulkProcessorBackoff(org.elasticsearch.action.bulk.BulkProcessor.Builder builder, org.apache.flink.streaming.connectors.elasticsearch.ElasticsearchSinkBase.BulkFlushBackoffPolicy flushBackoffPolicy)voidconfigureBulkProcessorFlushInterval(org.elasticsearch.action.bulk.BulkProcessor.Builder builder, long flushIntervalMillis)org.elasticsearch.action.bulk.BulkProcessor.BuildercreateBulkProcessorBuilder(org.elasticsearch.client.RestHighLevelClient client, org.elasticsearch.action.bulk.BulkProcessor.Listener listener)org.apache.flink.streaming.connectors.elasticsearch.RequestIndexercreateBulkProcessorIndexer(org.elasticsearch.action.bulk.BulkProcessor bulkProcessor, boolean flushOnCheckpoint, AtomicLong numPendingRequestsRef)org.elasticsearch.client.RestHighLevelClientcreateClient()ThrowableextractFailureCauseFromBulkItemResponse(org.elasticsearch.action.bulk.BulkItemResponse bulkItemResponse)voidverifyClientConnection(org.elasticsearch.client.RestHighLevelClient client)
-
-
-
Method Detail
-
createClient
public org.elasticsearch.client.RestHighLevelClient createClient()
- Specified by:
createClientin interfaceorg.apache.flink.streaming.connectors.elasticsearch.ElasticsearchApiCallBridge<org.elasticsearch.client.RestHighLevelClient>
-
createBulkProcessorBuilder
public org.elasticsearch.action.bulk.BulkProcessor.Builder createBulkProcessorBuilder(org.elasticsearch.client.RestHighLevelClient client, org.elasticsearch.action.bulk.BulkProcessor.Listener listener)- Specified by:
createBulkProcessorBuilderin interfaceorg.apache.flink.streaming.connectors.elasticsearch.ElasticsearchApiCallBridge<org.elasticsearch.client.RestHighLevelClient>
-
extractFailureCauseFromBulkItemResponse
public Throwable extractFailureCauseFromBulkItemResponse(org.elasticsearch.action.bulk.BulkItemResponse bulkItemResponse)
- Specified by:
extractFailureCauseFromBulkItemResponsein interfaceorg.apache.flink.streaming.connectors.elasticsearch.ElasticsearchApiCallBridge<org.elasticsearch.client.RestHighLevelClient>
-
configureBulkProcessorFlushInterval
public void configureBulkProcessorFlushInterval(org.elasticsearch.action.bulk.BulkProcessor.Builder builder, long flushIntervalMillis)- Specified by:
configureBulkProcessorFlushIntervalin interfaceorg.apache.flink.streaming.connectors.elasticsearch.ElasticsearchApiCallBridge<org.elasticsearch.client.RestHighLevelClient>
-
configureBulkProcessorBackoff
public void configureBulkProcessorBackoff(org.elasticsearch.action.bulk.BulkProcessor.Builder builder, @Nullable org.apache.flink.streaming.connectors.elasticsearch.ElasticsearchSinkBase.BulkFlushBackoffPolicy flushBackoffPolicy)- Specified by:
configureBulkProcessorBackoffin interfaceorg.apache.flink.streaming.connectors.elasticsearch.ElasticsearchApiCallBridge<org.elasticsearch.client.RestHighLevelClient>
-
createBulkProcessorIndexer
public org.apache.flink.streaming.connectors.elasticsearch.RequestIndexer createBulkProcessorIndexer(org.elasticsearch.action.bulk.BulkProcessor bulkProcessor, boolean flushOnCheckpoint, AtomicLong numPendingRequestsRef)- Specified by:
createBulkProcessorIndexerin interfaceorg.apache.flink.streaming.connectors.elasticsearch.ElasticsearchApiCallBridge<org.elasticsearch.client.RestHighLevelClient>
-
verifyClientConnection
public void verifyClientConnection(org.elasticsearch.client.RestHighLevelClient client) throws IOException- Specified by:
verifyClientConnectionin interfaceorg.apache.flink.streaming.connectors.elasticsearch.ElasticsearchApiCallBridge<org.elasticsearch.client.RestHighLevelClient>- Throws:
IOException
-
-