Class OpenSearchIndexSink

  • All Implemented Interfaces:
    Sink<org.opensearch.action.bulk.BulkRequest,​org.opensearch.action.bulk.BulkResponse>, Stats

    public class OpenSearchIndexSink
    extends Object
    implements Sink<org.opensearch.action.bulk.BulkRequest,​org.opensearch.action.bulk.BulkResponse>
    • Constructor Detail

      • OpenSearchIndexSink

        public OpenSearchIndexSink​(SearchClient client)
    • Method Detail

      • write

        public org.opensearch.action.bulk.BulkResponse write​(org.opensearch.action.bulk.BulkRequest data,
                                                             Map<String,​Object> contextData)
                                                      throws SinkException
        Specified by:
        write in interface Sink<org.opensearch.action.bulk.BulkRequest,​org.opensearch.action.bulk.BulkResponse>
        Throws:
        SinkException
      • updateStats

        public void updateStats​(int currentSuccess,
                                int currentFailed)
        Specified by:
        updateStats in interface Stats