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
ConstructorsModifierConstructorDescriptionprotectedprotectedAbstractTableDataService(String name, @NotNull TableDataServiceDescriptor descriptor) -
Method Summary
Modifier and TypeMethodDescription@NotNull TableDataServiceDescriptorReturn the descriptor object for this TableDataService instance.@NotNull Map<TableKey,TableLocationProvider> Get the collection of table location providers that are currently instantiated.getName()Allow TableDataService instances to have names.final @NotNull TableLocationProvidergetTableLocationProvider(@NotNull TableKey tableKey) Request a table location provider from this service.protected abstract @NotNull TableLocationProvidermakeTableLocationProvider(@NotNull TableKey tableKey) voidreset()Forget all state for future requests.voidForget all state for a single table.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.illumon.util.type.NamedImplementation
getImplementationNameMethods inherited from interface com.illumon.iris.db.v2.tabledataservice.TableDataService
authenticate, describe, getTableLocationProvider, shutdown
-
Constructor Details
-
AbstractTableDataService
-
AbstractTableDataService
protected AbstractTableDataService(String name, @NotNull @NotNull TableDataServiceDescriptor descriptor)
-
-
Method Details
-
getTableLocationProvider
@NotNull public final @NotNull TableLocationProvider getTableLocationProvider(@NotNull @NotNull TableKey tableKey) 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- Parameters:
key- forget state for this TableKey
-
makeTableLocationProvider
@NotNull protected abstract @NotNull TableLocationProvider makeTableLocationProvider(@NotNull @NotNull TableKey tableKey) -
getName
Description copied from interface:TableDataServiceAllow TableDataService instances to have names.- Specified by:
getNamein interfaceTableDataService
-
toString
-
getDescriptor
Description copied from interface:TableDataServiceReturn the descriptor object for this TableDataService instance.- Specified by:
getDescriptorin interfaceTableDataService- Returns:
- the TableDataServiceDescriptor for this TableDataService
-