Package com.illumon.iris.db.v2.locations
Interface TableDataService
- All Known Implementing Classes:
AbstractTableDataService
,CompositeTableDataService
,FilteredTableDataService
,LocalTableDataService
,RemoteTableDataService
,TableDataService.Null
public interface TableDataService
Service responsible for table location discovery.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TableDataService.Null
-
Method Summary
Modifier and Type Method Description default String
describe()
Like toString, but with more detail.Map<TableKey,TableLocationProvider>
getKnownLocationProviders()
Get the collection of table location providers that are currently instantiated.String
getName()
Allow TableDataService instances to have names.TableLocationProvider
getTableLocationProvider(TableKey tableKey)
Request a table location provider from this service.default TableLocationProvider
getTableLocationProvider(String namespace, String tableName, TableType tableType)
Request a table location provider from this service.void
reset()
Forget all state for future requests.void
reset(TableKey key)
Forget all state for a single table.
-
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 namespacetableName
- The table nametableType
- The table type- Returns:
- A table location provider for the specified table key fields
-
getTableLocationProvider
Request a table location provider from this service.- Parameters:
tableKey
- The table key- Returns:
- A table location provider for the specified key
-
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
Forget all state for a single table.- Parameters:
key
-
-
getName
Allow TableDataService instances to have names. -
describe
Like toString, but with more detail.- Returns:
- a description string
-