Package io.datarouter.bytes.kvfile
Class KvFileCollator.KvFileCollatorPruneDeletesScanner
java.lang.Object
io.datarouter.scanner.BaseScanner<R>
io.datarouter.scanner.BaseLinkedScanner<KvFileEntry,KvFileEntry>
io.datarouter.bytes.kvfile.KvFileCollator.KvFileCollatorPruneDeletesScanner
- All Implemented Interfaces:
io.datarouter.scanner.Scanner<KvFileEntry>,Closeable,AutoCloseable
- Enclosing class:
- KvFileCollator
public static class KvFileCollator.KvFileCollatorPruneDeletesScanner
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, inputFields inherited from class io.datarouter.scanner.BaseScanner
current -
Constructor Summary
ConstructorsConstructorDescriptionKvFileCollatorPruneDeletesScanner(io.datarouter.scanner.Scanner<KvFileEntry> input) -
Method Summary
Methods inherited from class io.datarouter.scanner.BaseLinkedScanner
advance, close, closeInternalMethods inherited from class io.datarouter.scanner.BaseScanner
currentMethods 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, 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
-
KvFileCollatorPruneDeletesScanner
-
-
Method Details
-
advanceInternal
public boolean advanceInternal()- Specified by:
advanceInternalin classio.datarouter.scanner.BaseLinkedScanner<KvFileEntry,KvFileEntry>
-