Package io.datarouter.scanner
Class PrefetchingScanner<T>
- All Implemented Interfaces:
Scanner<List<T>>,Closeable,AutoCloseable
public class PrefetchingScanner<T> extends BaseLinkedScanner<T,List<T>>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PrefetchingScanner(Scanner<T> input, ExecutorService exec, int batchSize) -
Method Summary
Modifier and Type Method Description booleanadvanceInternal()protected voidcloseInternal()Extend to close internal resources before the input scanner is closed.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, 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
-
Constructor Details
-
Method Details
-
advanceInternal
public boolean advanceInternal()- Specified by:
advanceInternalin classBaseLinkedScanner<T,List<T>>
-
closeInternal
protected void closeInternal()Description copied from class:BaseLinkedScannerExtend to close internal resources before the input scanner is closed.- Overrides:
closeInternalin classBaseLinkedScanner<T,List<T>>
-