Class OpenSearchIndexSink
- java.lang.Object
-
- org.openmetadata.service.search.openSearch.OpenSearchIndexSink
-
-
Constructor Summary
Constructors Constructor Description OpenSearchIndexSink(SearchClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StepStatsgetStats()voidupdateStats(int currentSuccess, int currentFailed)org.opensearch.action.bulk.BulkResponsewrite(org.opensearch.action.bulk.BulkRequest data, Map<String,Object> contextData)
-
-
-
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:
writein interfaceSink<org.opensearch.action.bulk.BulkRequest,org.opensearch.action.bulk.BulkResponse>- Throws:
SinkException
-
updateStats
public void updateStats(int currentSuccess, int currentFailed)- Specified by:
updateStatsin interfaceStats
-
-