Class DeferredTableLocation

java.lang.Object
com.illumon.iris.db.v2.locations.DeferredTableLocation
All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable, TableLocation, TableLocationKey, TableLocationState, NamedImplementation
Direct Known Subclasses:
DeferredTableLocation.DataDriven, DeferredTableLocation.SnapshotDriven

public abstract class DeferredTableLocation extends Object implements TableLocation
  • Method Details

    • visit

      public DeferredTableLocation visit(long stamp)
      Description copied from interface: TableLocation
      Mark this table location as visited, with the given (time)stamp.
      Specified by:
      visit in interface TableLocation
      Parameters:
      stamp - a monotonically increasing value indicating when this location was visited.
      Returns:
      returns itself for chaining
    • getVisit

      public long getVisit()
      Description copied from interface: TableLocation
      return the last value set in TableLocation.visit(long)
      Specified by:
      getVisit in interface TableLocation
      Returns:
      the last value set in visit()
    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • getImplementationName

      public final 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
    • getInternalPartition

      @NotNull public final CharSequence getInternalPartition()
      Specified by:
      getInternalPartition in interface TableLocationKey
      Returns:
      The internal partition that encloses the identified table location, or null if none exists
    • getColumnPartition

      @NotNull public final CharSequence getColumnPartition()
      Specified by:
      getColumnPartition in interface TableLocationKey
      Returns:
      The column partition that encloses the identified table location, or null if none exists
    • getTableKey

      @NotNull public final TableKey getTableKey()
      Specified by:
      getTableKey in interface TableLocation
      Returns:
      A TableKey instance for the enclosing table
    • getColumnLocation

      @NotNull public final ColumnLocation getColumnLocation(@NotNull CharSequence name)
      Specified by:
      getColumnLocation in interface TableLocation
      Parameters:
      name - The column name
      Returns:
      The ColumnLocation for the defined column under this table location
    • as

      public <T extends TableLocation> T as(Class<T> otherType)
      Specified by:
      as in interface TableLocation
    • isRealized

      public final boolean isRealized()
      Check if this location has been visited in a way that required creation of the actual underlying location/
      Returns:
      true of the location has been realized.