Package com.illumon.iris.db.v2.locations
Class AbstractTableDataService
java.lang.Object
com.illumon.iris.db.v2.locations.AbstractTableDataService
- All Implemented Interfaces:
TableDataService
- Direct Known Subclasses:
CompositeTableDataService,FilteredTableDataService,LocalTableDataService,RemoteTableDataService
public abstract class AbstractTableDataService extends Object implements TableDataService
Partial TableDataService implementation for use by TableDataService implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.locations.TableDataService
TableDataService.Null -
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractTableDataService(String name) -
Method Summary
Modifier and Type Method Description 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.protected abstract TableLocationProvidermakeTableLocationProvider(TableKey tableKey)voidreset()Forget all state for future requests.voidreset(TableKey key)Forget all state for a single table.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.db.v2.locations.TableDataService
describe, getTableLocationProvider
-
Constructor Details
-
Method Details
-
getTableLocationProvider
Description copied from interface:TableDataServiceRequest a table location provider from this service.- Specified by:
getTableLocationProviderin interfaceTableDataService- Parameters:
tableKey- The table key- Returns:
- A table location provider for the specified key
-
getKnownLocationProviders
Description copied from interface:TableDataServiceGet the collection of table location providers that are currently instantiated. The returned map is unmodifiable and stable.- Specified by:
getKnownLocationProvidersin interfaceTableDataService- Returns:
- map of TableKey to TableLocationProvider
-
reset
public void reset()Description copied from interface:TableDataServiceForget all state for future requests.- Specified by:
resetin interfaceTableDataService
-
reset
Description copied from interface:TableDataServiceForget all state for a single table.- Specified by:
resetin interfaceTableDataService
-
makeTableLocationProvider
@NotNull protected abstract TableLocationProvider makeTableLocationProvider(@NotNull TableKey tableKey) -
getName
Description copied from interface:TableDataServiceAllow TableDataService instances to have names.- Specified by:
getNamein interfaceTableDataService
-