Package io.datarouter.storage.op.scan
Class BaseNodeScanner<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,T extends Comparable<? super T>>
java.lang.Object
io.datarouter.scanner.BaseScanner<List<T>>
io.datarouter.storage.op.scan.BaseNodeScanner<PK,T>
- All Implemented Interfaces:
io.datarouter.scanner.Scanner<List<T>>,Closeable,AutoCloseable
public abstract class BaseNodeScanner<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,T extends Comparable<? super T>> extends io.datarouter.scanner.BaseScanner<List<T>>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description BaseNodeScanner(Collection<io.datarouter.util.tuple.Range<PK>> ranges, Config config, boolean caseInsensitive) -
Method Summary
Modifier and Type Method Description booleanadvance()protected abstract PKgetPrimaryKey(T fieldSet)protected abstract List<T>loadRanges(Collection<io.datarouter.util.tuple.Range<PK>> ranges, Config config)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
-
Constructor Details
-
BaseNodeScanner
public BaseNodeScanner(Collection<io.datarouter.util.tuple.Range<PK>> ranges, Config config, boolean caseInsensitive)
-
-
Method Details
-
getPrimaryKey
-
loadRanges
protected abstract List<T> loadRanges(Collection<io.datarouter.util.tuple.Range<PK>> ranges, Config config) -
advance
public boolean advance()
-