Class ElasticSearchIndexSink

java.lang.Object
org.openmetadata.service.search.elasticsearch.ElasticSearchIndexSink
All Implemented Interfaces:
Sink<es.org.elasticsearch.action.bulk.BulkRequest,es.org.elasticsearch.action.bulk.BulkResponse>, Stats

public class ElasticSearchIndexSink extends Object implements Sink<es.org.elasticsearch.action.bulk.BulkRequest,es.org.elasticsearch.action.bulk.BulkResponse>
  • Constructor Details

    • ElasticSearchIndexSink

      public ElasticSearchIndexSink(SearchRepository searchRepository, int total)
  • Method Details

    • write

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

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

      public StepStats getStats()
      Specified by:
      getStats in interface Stats