Class KnownLocationKeyFinder<TLK extends ImmutableTableLocationKey>
java.lang.Object
io.deephaven.engine.table.impl.locations.impl.KnownLocationKeyFinder<TLK>
- All Implemented Interfaces:
TableLocationKeyFinder<TLK>
public final class KnownLocationKeyFinder<TLK extends ImmutableTableLocationKey>
extends Object
implements TableLocationKeyFinder<TLK>
Location finder that delivers a known set of keys.-
Constructor Summary
ConstructorsConstructorDescriptionKnownLocationKeyFinder(List<TLK> knownKeys) KnownLocationKeyFinder(List<TLK> knownKeys, String toString) KnownLocationKeyFinder(TLK... knownKeys) -
Method Summary
Modifier and TypeMethodDescriptionstatic <TLK extends ImmutableTableLocationKey>
KnownLocationKeyFinder<TLK> copyFrom(TableLocationKeyFinder<TLK> finder, Comparator<TLK> comparator) Creates a copy of the keys fromfinder.voidFindkeysand deliver them to thelocationKeyObserver.toString()
-
Constructor Details
-
KnownLocationKeyFinder
-
KnownLocationKeyFinder
-
KnownLocationKeyFinder
-
-
Method Details
-
copyFrom
public static <TLK extends ImmutableTableLocationKey> KnownLocationKeyFinder<TLK> copyFrom(TableLocationKeyFinder<TLK> finder, Comparator<TLK> comparator) Creates a copy of the keys fromfinder. Ifcomparatoris notnull, the keys will be sorted according to thatcomparator.- Type Parameters:
TLK- the table location key type- Parameters:
finder- the findercomparator- the comparator- Returns:
- the known location finder
-
getKnownKeys
- Returns:
- An unmodifiable list of recorded (immutable) keys
-
getFirstKey
-
getLastKey
-
findKeys
Description copied from interface:TableLocationKeyFinderFindkeysand deliver them to thelocationKeyObserver.- Specified by:
findKeysin interfaceTableLocationKeyFinder<TLK extends ImmutableTableLocationKey>- Parameters:
locationKeyObserver- Per-key callback
-
toString
-