Package io.datarouter.scanner
Class PagingScanner<K,T>
- All Implemented Interfaces:
Scanner<List<T>>,Closeable,AutoCloseable
public abstract class PagingScanner<K,T> extends BaseScanner<List<T>>
Base class for things that page through results by passing the last item as an exclusive start key for the next page
-
Field Summary
Fields Modifier and Type Field Description protected intpageSize -
Constructor Summary
Constructors Modifier Constructor Description protectedPagingScanner(int pageSize) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.datarouter.scanner.Scanner
advanceUntil, advanceWhile, allMatch, anyMatch, append, append, append, apply, batch, close, collate, collate, collect, collect, concat, concatIter, count, deduplicate, deduplicateBy, distinct, distinctBy, each, exclude, findAny, findFirst, findLast, flush, forEach, groupBy, groupBy, groupBy, groupBy, hasAny, include, isEmpty, iterable, iterator, limit, link, list, listTo, map, max, min, noneMatch, parallel, prefetch, reduce, reduce, retain, sample, shuffle, skip, sorted, sorted, splitBy, stream, streamDoubles, streamInts, streamLongs, take, then, toArray, toMap, toMap, toMap, toMap, toMapSupplied, toMapSupplied, toMapSupplied, toMapSupplied
-
Field Details
-
pageSize
protected final int pageSize
-
-
Constructor Details
-
PagingScanner
protected PagingScanner(int pageSize)
-
-
Method Details