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

    Fields inherited from class io.datarouter.scanner.BaseScanner

    current
  • 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
    boolean
     
    protected abstract PK
    getPrimaryKey(T fieldSet)
     
    protected abstract List<T>
    loadRanges(Collection<io.datarouter.util.tuple.Range<PK>> ranges, Config config)
     

    Methods inherited from class io.datarouter.scanner.BaseScanner

    current

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.datarouter.scanner.Scanner

    advanceUntil, advanceWhile, allMatch, anyMatch, append, append, append, apply, batch, batchByMinSize, close, collate, collate, collateV2, collect, collect, concat, concatIter, count, deduplicateConsecutive, deduplicateConsecutiveBy, deduplicateConsecutiveBy, distinct, distinctBy, each, exclude, findFirst, findLast, findMax, findMin, flush, forEach, groupBy, groupBy, groupBy, groupBy, hasAny, include, isEmpty, iterable, iterator, limit, link, list, listTo, map, maxN, minN, noneMatch, parallelOrdered, parallelOrdered, parallelUnordered, parallelUnordered, peekFirst, periodic, periodic, prefetch, reduce, reduce, retain, reverse, sample, shuffle, skip, sort, sort, splitBy, splitBy, stream, streamDoubles, streamInts, streamLongs, take, then, timeNanos, toArray, toMap, 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

      protected abstract PK getPrimaryKey(T fieldSet)
    • loadRanges

      protected abstract List<T> loadRanges(Collection<io.datarouter.util.tuple.Range<PK>> ranges, Config config)
    • advance

      public boolean advance()