Class PaginatedEntitiesSource
- java.lang.Object
-
- org.openmetadata.service.workflows.searchIndex.PaginatedEntitiesSource
-
- All Implemented Interfaces:
Source<ResultList<? extends EntityInterface>>,Stats
public class PaginatedEntitiesSource extends Object implements Source<ResultList<? extends EntityInterface>>
-
-
Constructor Summary
Constructors Constructor Description PaginatedEntitiesSource(String entityType, int batchSize, List<String> fields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLastFailedCursor()StepStatsgetStats()ResultList<? extends EntityInterface>readNext(Map<String,Object> contextData)voidreset()voidsetCursor(String cursor)voidupdateStats(int currentSuccess, int currentFailed)
-
-
-
Method Detail
-
readNext
public ResultList<? extends EntityInterface> readNext(Map<String,Object> contextData) throws SourceException
- Specified by:
readNextin interfaceSource<ResultList<? extends EntityInterface>>- Throws:
SourceException
-
reset
public void reset()
- Specified by:
resetin interfaceSource<ResultList<? extends EntityInterface>>
-
updateStats
public void updateStats(int currentSuccess, int currentFailed)- Specified by:
updateStatsin interfaceStats
-
getLastFailedCursor
public String getLastFailedCursor()
-
setCursor
public void setCursor(String cursor)
-
-