Class PagedLoader<T>
java.lang.Object
ch.tocco.nice2.enterprisesearch.impl.indexfix.PagedLoader<T>
Calls the given
PagedLoader.Query
in partitions of pageSize
and calls the resultProcessing
for each loaded partition. The resultProcessing
should return true if processing the partition was successful.
If false is returned, the remaining partitions will not be loaded.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static class
-
Constructor Summary
ConstructorDescriptionPagedLoader
(int pageSize, PagedLoader.Query<T> query, Function<Iterable<T>, Boolean> resultProcessing) -
Method Summary
-
Constructor Details
-
PagedLoader
-
-
Method Details
-
load
public boolean load()Return true if loading was successful. Else loading was aborted after an error (not all partitions are processed)
-