Class NonexistentTableLocation

All Implemented Interfaces:
LogOutputAppendable, TableLocation, TableLocationState, NamedImplementation

public final class NonexistentTableLocation extends AbstractTableLocation
TableLocation implementation for locations that are found to not actually exist when accessed.
  • Constructor Details

    • NonexistentTableLocation

      public NonexistentTableLocation(@NotNull @NotNull TableKey tableKey, @NotNull @NotNull TableLocationKey tableLocationKey)
  • Method Details

    • 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.

      Returns:
      A name for the implementing class
    • refresh

      public void refresh()
      Description copied from interface: TableLocation
      Initialize or run state information.
    • getSortedColumns

      @NotNull public @NotNull List<SortColumn> getSortedColumns()
      Description copied from interface: TableLocation
      Get an ordered list of columns this location is sorted by.
      Returns:
      A non-null ordered list of SortColumns
    • getDataIndexColumns

      @NotNull public @NotNull List<String[]> getDataIndexColumns()
      Description copied from interface: TableLocation
      Get a list of the columns by which this location is indexed
      Returns:
      A non-null list of String[] arrays containing the key column names for each existing index
    • hasDataIndex

      public boolean hasDataIndex(@NotNull @NotNull String... columns)
      Description copied from interface: TableLocation
      Check if this TableLocation has a data index for the specified columns.
      Parameters:
      columns - The set of columns to check for
      Returns:
      Whether the TableLocation has an index for the specified columns
    • makeColumnLocation

      @NotNull protected @NotNull ColumnLocation makeColumnLocation(@NotNull @NotNull String name)
      Specified by:
      makeColumnLocation in class AbstractTableLocation
    • loadDataIndex

      @Nullable public @Nullable BasicDataIndex loadDataIndex(@NotNull @NotNull String... columns)
      Description copied from class: AbstractTableLocation
      Load the data index from the location implementation. Implementations of this method should not perform any result caching.
      Specified by:
      loadDataIndex in class AbstractTableLocation
      Parameters:
      columns - The columns to load an index for
      Returns:
      The data index, or null if none exists