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
(@NotNull TLK... knownKeys) KnownLocationKeyFinder
(List<TLK> knownKeys) KnownLocationKeyFinder
(List<TLK> knownKeys, String toString) -
Method Summary
Modifier and TypeMethodDescriptionstatic <TLK extends ImmutableTableLocationKey>
KnownLocationKeyFinder<TLK>copyFrom
(TableLocationKeyFinder<TLK> finder, Comparator<TLK> comparator) Creates a copy of the keys fromfinder
.void
Findkeys
and 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
. Ifcomparator
is 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:TableLocationKeyFinder
Findkeys
and deliver them to thelocationKeyObserver
.- Specified by:
findKeys
in interfaceTableLocationKeyFinder<TLK extends ImmutableTableLocationKey>
- Parameters:
locationKeyObserver
- Per-key callback
-
toString
-