Class AbstractTableDataService
java.lang.Object
com.illumon.iris.db.v2.tabledataservice.AbstractTableDataService
- All Implemented Interfaces:
TableDataService
,NamedImplementation
- Direct Known Subclasses:
CompositeTableDataService
,FilteredTableDataService
,LocalTableDataService
,RemoteTableDataService
Partial TableDataService implementation for use by TableDataService implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.tabledataservice.TableDataService
TableDataService.Null
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKey()
Return a key object that identifies this TableDataService instance, and does not hold resources.Get the collection of table location providers that are currently instantiated.getName()
Allow TableDataService instances to have names.final TableLocationProvider
getTableLocationProvider
(TableKey tableKey) Request a table location provider from this service.protected abstract TableLocationProvider
makeTableLocationProvider
(TableKey tableKey) void
reset()
Forget all state for future requests.void
Forget all state for a single table.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.illumon.util.type.NamedImplementation
getImplementationName
Methods inherited from interface com.illumon.iris.db.v2.tabledataservice.TableDataService
authenticate, describe, getTableLocationProvider, shutdown
-
Constructor Details
-
AbstractTableDataService
-
-
Method Details
-
getTableLocationProvider
Description copied from interface:TableDataService
Request a table location provider from this service.- Specified by:
getTableLocationProvider
in interfaceTableDataService
- Parameters:
tableKey
- The table key- Returns:
- A table location provider for the specified key
-
getKnownLocationProviders
Description copied from interface:TableDataService
Get the collection of table location providers that are currently instantiated. The returned map is unmodifiable and stable.- Specified by:
getKnownLocationProviders
in interfaceTableDataService
- Returns:
- map of TableKey to TableLocationProvider
-
reset
public void reset()Description copied from interface:TableDataService
Forget all state for future requests.- Specified by:
reset
in interfaceTableDataService
-
reset
Description copied from interface:TableDataService
Forget all state for a single table.- Specified by:
reset
in interfaceTableDataService
- Parameters:
key
- forget state for this TableKey
-
makeTableLocationProvider
@NotNull protected abstract TableLocationProvider makeTableLocationProvider(@NotNull TableKey tableKey) -
getName
Description copied from interface:TableDataService
Allow TableDataService instances to have names.- Specified by:
getName
in interfaceTableDataService
-
toString
-
getKey
Description copied from interface:TableDataService
Return a key object that identifies this TableDataService instance, and does not hold resources.- Specified by:
getKey
in interfaceTableDataService
- Returns:
- a TableDataServiceKey for this TableDataService
-