Interface MassIdentifierLoader
- All Superinterfaces:
AutoCloseable
A loader for mass loading of entity identifiers, used in particular during mass indexing.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes thisMassIdentifierLoader.voidloadNext()Loads one batch of identifiers and adds them to the sink, or callsMassIdentifierSink.complete()to notify the caller that there are no more identifiers to load.long
-
Method Details
-
close
void close()Closes thisMassIdentifierLoader.- Specified by:
closein interfaceAutoCloseable
-
totalCount
long totalCount()- Returns:
- The total count of identifiers expected to be loaded.
-
loadNext
Loads one batch of identifiers and adds them to the sink, or callsMassIdentifierSink.complete()to notify the caller that there are no more identifiers to load.Calls to the sink must be performed synchronously (before this method returns).
- Throws:
InterruptedException- If the thread was interrupted while performing I/O operations. This will lead to aborting mass indexing completely.
-