Interface TableDataService

All Known Implementing Classes:
AbstractTableDataService, CompositeTableDataService, FilteredTableDataService, LocalTableDataService, RemoteTableDataService, TableDataService.Null

public interface TableDataService
Service responsible for table location discovery.
  • Method Details

    • getTableLocationProvider

      @NotNull default TableLocationProvider getTableLocationProvider​(@NotNull String namespace, @NotNull String tableName, @NotNull TableType tableType)
      Request a table location provider from this service.
      Parameters:
      namespace - The namespace
      tableName - The table name
      tableType - The table type
      Returns:
      A table location provider for the specified table key fields
    • getTableLocationProvider

      @NotNull TableLocationProvider getTableLocationProvider​(@NotNull TableKey tableKey)
      Request a table location provider from this service.
      Parameters:
      tableKey - The table key
      Returns:
      A table location provider for the specified key
    • getKnownLocationProviders

      @NotNull Map<TableKey,​TableLocationProvider> getKnownLocationProviders()
      Get the collection of table location providers that are currently instantiated. The returned map is unmodifiable and stable.
      Returns:
      map of TableKey to TableLocationProvider
    • reset

      void reset()
      Forget all state for future requests.
    • reset

      void reset​(TableKey key)
      Forget all state for a single table.
      Parameters:
      key -
    • getName

      @Nullable String getName()
      Allow TableDataService instances to have names.
    • describe

      default String describe()
      Like toString, but with more detail.
      Returns:
      a description string