Interface EnterpriseTableLocationKey
- All Superinterfaces:
Comparable<TableLocationKey>
,ImmutableTableLocationKey
,LogOutputAppendable
,NamedImplementation
,TableLocationKey
- All Known Subinterfaces:
FixedPartitionedEnterpriseTableLocationKey
- All Known Implementing Classes:
BasicFixedPartitionedDeephavenTableLocationKey
,NestedPartitionedDeephavenTableLocationKey
,NestedPartitionedParquetTableLocationKey
,NestedPartitionedSnapshotTableLocationKey
,NestedPartitionedUnresolvedTableLocationKey
-
Field Summary
Fields inherited from interface io.deephaven.engine.table.impl.locations.ImmutableTableLocationKey
ZERO_LENGTH_IMMUTABLE_TABLE_LOCATION_KEY_ARRAY
-
Method Summary
Modifier and TypeMethodDescription@NotNull Map<String,
Comparable<?>> Get the Column and Internal partitions as a map.default boolean
Check if this table has a metadata indexstatic int
partitionOnlyCompare
(@NotNull EnterpriseTableLocationKey left, @Nullable TableLocationKey right) Compare two location keys, automatically mapping the column and internal partition values.static boolean
partitionOnlyEquals
(@NotNull EnterpriseTableLocationKey left, @Nullable Object right) Check for equality between two location keys using only the partition values.static int
partitionOnlyHashCode
(@NotNull EnterpriseTableLocationKey key) Compute the hash code of the key using only the partitions.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface io.deephaven.engine.table.impl.locations.ImmutableTableLocationKey
makeImmutable
Methods inherited from interface io.deephaven.base.log.LogOutputAppendable
append
Methods inherited from interface io.deephaven.util.type.NamedImplementation
getImplementationName
Methods 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.
-
partitionOnlyHashCode
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
-
partitionOnlyCompare
static int partitionOnlyCompare(@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)
-
partitionOnlyEquals
static boolean partitionOnlyEquals(@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
-