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 classTableDataService.Null -
Method Summary
Modifier and Type Method Description default Stringdescribe()Like toString, but with more detail.Map<TableKey,TableLocationProvider>getKnownLocationProviders()Get the collection of table location providers that are currently instantiated.StringgetName()Allow TableDataService instances to have names.TableLocationProvidergetTableLocationProvider(TableKey tableKey)Request a table location provider from this service.default TableLocationProvidergetTableLocationProvider(String namespace, String tableName, TableType tableType)Request a table location provider from this service.voidreset()Forget all state for future requests.voidreset(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
-