- All Superinterfaces:
Comparable<TableLocationKey>
, ImmutableTableLocationKey
, LogOutputAppendable
, NamedImplementation
, TableLocationKey
- All Known Subinterfaces:
FixedPartitionedEnterpriseTableLocationKey
, SnapshotProvidingLocationKey
, URIProvidingLocationKey
, URISnapshotProvidingLocationKey
- All Known Implementing Classes:
BasicFixedPartitionedDeephavenTableLocationKey
, NestedPartitionedDeephavenTableLocationKey
, NestedPartitionedParquetTableLocationKey
, NestedPartitionedSnapshotTableLocationKey
, NestedPartitionedUnresolvedTableLocationKey
-
Method Summary
Get the Column and Internal partitions as a map.
default boolean
Check if this table has a metadata index
static int
Compare two location keys, automatically mapping the column and internal partition values.
static boolean
Check for equality between two location keys using only the partition values.
static int
Compute the hash code of the key using only the partitions.
-
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
Compare two location keys, automatically mapping the column and internal partition values.
- Parameters:
left
- the lhs of the comparison
right
- the rhs of the comparison
- Returns:
- the comparison result following the conventions of
Comparable.compareTo(Object)
-
partitionOnlyEquals
Check for equality between two location keys using only the partition values.
- Parameters:
left
- the lhs of the equality
right
- the rhs of the equality
- Returns:
- if the partitions are equal