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
ConstructorsConstructorDescriptionPaginatedEntitiesSource(String entityType, int batchSize, List<String> fields) -
Method Summary
Modifier and TypeMethodDescriptionResultList<? extends EntityInterface>voidreset()voidvoidupdateStats(int currentSuccess, int currentFailed) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openmetadata.service.workflows.interfaces.Source
getReaderErrors
-
Constructor Details
-
PaginatedEntitiesSource
-
-
Method Details
-
readNext
public ResultList<? extends EntityInterface> readNext(Map<String, Object> contextData) throws SearchIndexException- Specified by:
readNextin interfaceSource<ResultList<? extends EntityInterface>>- Throws:
SearchIndexException
-
reset
public void reset()- Specified by:
resetin interfaceSource<ResultList<? extends EntityInterface>>
-
updateStats
public void updateStats(int currentSuccess, int currentFailed) - Specified by:
updateStatsin interfaceStats
-
setCursor
-