Interface TableDataService
- All Known Implementing Classes:
AbstractTableDataService,CompositeTableDataService,FilteredTableDataService,PythonTableDataService
public interface TableDataService
Service responsible for
TableLocation discovery.-
Method Summary
Modifier and TypeMethodDescriptiondefault Stringdescribe()Get a detailed description string.default @Nullable StringgetName()Get an optional name for this service, or null if no name is defined.@Nullable TableLocationProvidergetRawTableLocationProvider(@NotNull TableKey tableKey, @NotNull TableLocationKey tableLocationKey) Request the single rawTableLocationProviderfrom this service that has theTableLocationfortableKeyandtableLocationKey.@NotNull TableLocationProvidergetTableLocationProvider(@NotNull TableKey tableKey) Request aTableLocationProviderfrom this service.voidreset()Forget all state for subsequent requests for all tables.voidForget all state for subsequent requests for a single table.
-
Method Details
-
getTableLocationProvider
@NotNull @NotNull TableLocationProvider getTableLocationProvider(@NotNull @NotNull TableKey tableKey) Request aTableLocationProviderfrom this service.- Parameters:
tableKey- TheTableKeyto lookup- Returns:
- A
TableLocationProviderfor the specifiedTableKey
-
getRawTableLocationProvider
@Nullable @Nullable TableLocationProvider getRawTableLocationProvider(@NotNull @NotNull TableKey tableKey, @NotNull @NotNull TableLocationKey tableLocationKey) Request the single rawTableLocationProviderfrom this service that has theTableLocationfortableKeyandtableLocationKey. A rawTableLocationProviderdoes not compose multipleTableLocationProvidersor delegate to other implementations.- Parameters:
tableKey- TheTableKeyto lookuptableLocationKey- TheTableLocationKeyto lookup- Returns:
- The raw
TableLocationProviderthat has theTableLocationfortableKeyandtableLocationKey, ornullif there is none - Throws:
TableDataException- If more than oneTableLocationProviderhas theTableLocation
-
reset
void reset()Forget all state for subsequent requests for all tables. -
reset
Forget all state for subsequent requests for a single table.- Parameters:
tableKey-TableKeyto forget state for
-
getName
Get an optional name for this service, or null if no name is defined.- Returns:
- The service name, or null
-
describe
Get a detailed description string.- Returns:
- A description string
- ImplNote:
- Defaults to
Object.toString()
-