Class StandaloneTableLocationKey

java.lang.Object
io.deephaven.engine.table.impl.locations.impl.StandaloneTableLocationKey
All Implemented Interfaces:
LogOutputAppendable, ImmutableTableLocationKey, TableLocationKey, NamedImplementation, Comparable<TableLocationKey>

public final class StandaloneTableLocationKey extends Object implements ImmutableTableLocationKey
TableLocationKey implementation for unpartitioned standalone tables.
  • Method Details

    • getInstance

      public static TableLocationKey getInstance()
    • getImplementationName

      public String getImplementationName()
      Description copied from interface: NamedImplementation

      Get a name for the implementing class. Useful for abstract classes that implement LogOutputAppendable or override toString.

      The default implementation is correct, but not suitable for high-frequency usage.

      Specified by:
      getImplementationName in interface NamedImplementation
      Returns:
      A name for the implementing class
    • append

      public LogOutput append(LogOutput logOutput)
      Specified by:
      append in interface LogOutputAppendable
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(@NotNull @NotNull TableLocationKey other)
      Description copied from interface: TableLocationKey
      By default, compare fully qualified class names of the implementing classes. This method is a fallback where the implementing classes are not directly comparable, and should help establish a consistent ordering between distinct implementations.

      Specified by:
      compareTo in interface Comparable<TableLocationKey>
      Specified by:
      compareTo in interface TableLocationKey
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable @Nullable Object other)
      Overrides:
      equals in class Object
    • getPartitionValue

      public <PARTITION_VALUE_TYPE extends Comparable<PARTITION_VALUE_TYPE>> PARTITION_VALUE_TYPE getPartitionValue(@NotNull @NotNull String partitionKey)
      Description copied from interface: TableLocationKey
      Lookup the value of one of the table partitions enclosing the location keyed by this.
      Specified by:
      getPartitionValue in interface TableLocationKey
      Type Parameters:
      PARTITION_VALUE_TYPE - The expected type of the partition value
      Parameters:
      partitionKey - The name of the partition
      Returns:
      The partition value
    • getPartitionKeys

      public Set<String> getPartitionKeys()
      Description copied from interface: TableLocationKey
      Get the set of available partition keys.
      Specified by:
      getPartitionKeys in interface TableLocationKey
      Returns:
      The set of available partition keys