Class OpenSearchEntitiesProcessor
- java.lang.Object
-
- org.openmetadata.service.search.openSearch.OpenSearchEntitiesProcessor
-
- All Implemented Interfaces:
Processor<org.opensearch.action.bulk.BulkRequest,ResultList<? extends EntityInterface>>,Stats
public class OpenSearchEntitiesProcessor extends Object implements Processor<org.opensearch.action.bulk.BulkRequest,ResultList<? extends EntityInterface>>
-
-
Constructor Summary
Constructors Constructor Description OpenSearchEntitiesProcessor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StepStatsgetStats()static org.opensearch.action.update.UpdateRequestgetUpdateRequest(String entityType, EntityInterface entity)org.opensearch.action.bulk.BulkRequestprocess(ResultList<? extends EntityInterface> input, Map<String,Object> contextData)voidupdateStats(int currentSuccess, int currentFailed)
-
-
-
Method Detail
-
process
public org.opensearch.action.bulk.BulkRequest process(ResultList<? extends EntityInterface> input, Map<String,Object> contextData) throws ProcessorException
- Specified by:
processin interfaceProcessor<org.opensearch.action.bulk.BulkRequest,ResultList<? extends EntityInterface>>- Throws:
ProcessorException
-
getUpdateRequest
public static org.opensearch.action.update.UpdateRequest getUpdateRequest(String entityType, EntityInterface entity)
-
updateStats
public void updateStats(int currentSuccess, int currentFailed)- Specified by:
updateStatsin interfaceStats
-
-