Class KvFileCollator.KvFileCollatorPruneVersionsScanner

java.lang.Object
io.datarouter.scanner.BaseScanner<R>
io.datarouter.scanner.BaseLinkedScanner<KvFileEntry,KvFileEntry>
io.datarouter.bytes.kvfile.KvFileCollator.KvFileCollatorPruneVersionsScanner
All Implemented Interfaces:
io.datarouter.scanner.Scanner<KvFileEntry>, Closeable, AutoCloseable
Enclosing class:
KvFileCollator

public static class KvFileCollator.KvFileCollatorPruneVersionsScanner extends io.datarouter.scanner.BaseLinkedScanner<KvFileEntry,KvFileEntry>
Assumes non-null entries. Assumes inputs are sorted by version asc. Keep the last entry for each key, the one with the latest version.
  • Field Summary

    Fields inherited from class io.datarouter.scanner.BaseLinkedScanner

    closed, input

    Fields inherited from class io.datarouter.scanner.BaseScanner

    current
  • Constructor Summary

    Constructors
    Constructor
    Description
    KvFileCollatorPruneVersionsScanner(io.datarouter.scanner.Scanner<KvFileEntry> input)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     

    Methods inherited from class io.datarouter.scanner.BaseLinkedScanner

    advance, close, closeInternal

    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, 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

    • KvFileCollatorPruneVersionsScanner

      public KvFileCollatorPruneVersionsScanner(io.datarouter.scanner.Scanner<KvFileEntry> input)
  • Method Details

    • advanceInternal

      public boolean advanceInternal()
      Specified by:
      advanceInternal in class io.datarouter.scanner.BaseLinkedScanner<KvFileEntry,KvFileEntry>