Interface EnterpriseTableLocationKey
- All Superinterfaces:
Comparable<TableLocationKey>,ImmutableTableLocationKey,LogOutputAppendable,NamedImplementation,TableLocationKey
- All Known Subinterfaces:
FixedPartitionedEnterpriseTableLocationKey
- All Known Implementing Classes:
BasicFixedPartitionedDeephavenTableLocationKey,DeephavenTableLocationKey,EnterpriseParquetTableLocationKey,EnterpriseTableLocationKeyUnresolved,SnapshotBackedTableLocationKey
-
Field Summary
Fields inherited from interface io.deephaven.engine.table.impl.locations.ImmutableTableLocationKey
ZERO_LENGTH_IMMUTABLE_TABLE_LOCATION_KEY_ARRAY -
Method Summary
Modifier and TypeMethodDescriptionstatic intcomputeHashCode(@NotNull EnterpriseTableLocationKey key) Compute the hash code of the key using only the partitions.static intdoCompare(@NotNull EnterpriseTableLocationKey left, @Nullable TableLocationKey right) Compare two location keys, automatically mapping the column and internal partition values.static booleandoEquals(@NotNull EnterpriseTableLocationKey left, @Nullable Object right) Check for equality between two location keys using only the partition values.@NotNull Map<String,Comparable<?>> Get the Column and Internal partitions as a map.default booleanCheck if this table has a metadata indexMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface io.deephaven.engine.table.impl.locations.ImmutableTableLocationKey
makeImmutableMethods inherited from interface io.deephaven.base.log.LogOutputAppendable
appendMethods inherited from interface io.deephaven.util.type.NamedImplementation
getImplementationNameMethods inherited from interface io.deephaven.engine.table.impl.locations.TableLocationKey
getPartitionKeys, getPartitionValue
-
Method Details
-
getPartitions
Get the Column and Internal partitions as a map.- Returns:
- a map of the partitions
-
hasLocationSnapshot
default boolean hasLocationSnapshot()Check if this table has a metadata index- Returns:
- true if it does.
-
computeHashCode
Compute the hash code of the key using only the partitions.- Parameters:
key- the key to compute the hash code for- Returns:
- the computed hash code
-
doCompare
static int doCompare(@NotNull @NotNull EnterpriseTableLocationKey left, @Nullable @Nullable TableLocationKey right) Compare two location keys, automatically mapping the column and internal partition values.- Parameters:
left- the lhs of the comparisonright- the rhs of the comparison- Returns:
- the comparison result following the conventions of
Comparable.compareTo(Object)
-
doEquals
static boolean doEquals(@NotNull @NotNull EnterpriseTableLocationKey left, @Nullable @Nullable Object right) Check for equality between two location keys using only the partition values.- Parameters:
left- the lhs of the equalityright- the rhs of the equality- Returns:
- if the partitions are equal
-