Class 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 of ElasticsearchApiCallBridge for Elasticsearch 7 and later versions.
    See Also:
    Serialized Form
    • Method Detail

      • createClient

        public org.elasticsearch.client.RestHighLevelClient createClient()
        Specified by:
        createClient in interface org.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:
        createBulkProcessorBuilder in interface org.apache.flink.streaming.connectors.elasticsearch.ElasticsearchApiCallBridge<org.elasticsearch.client.RestHighLevelClient>
      • extractFailureCauseFromBulkItemResponse

        public Throwable extractFailureCauseFromBulkItemResponse​(org.elasticsearch.action.bulk.BulkItemResponse bulkItemResponse)
        Specified by:
        extractFailureCauseFromBulkItemResponse in interface org.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:
        configureBulkProcessorFlushInterval in interface org.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:
        configureBulkProcessorBackoff in interface org.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:
        createBulkProcessorIndexer in interface org.apache.flink.streaming.connectors.elasticsearch.ElasticsearchApiCallBridge<org.elasticsearch.client.RestHighLevelClient>
      • verifyClientConnection

        public void verifyClientConnection​(org.elasticsearch.client.RestHighLevelClient client)
                                    throws IOException
        Specified by:
        verifyClientConnection in interface org.apache.flink.streaming.connectors.elasticsearch.ElasticsearchApiCallBridge<org.elasticsearch.client.RestHighLevelClient>
        Throws:
        IOException