Class CompositeTableDataService
java.lang.Object
io.deephaven.engine.table.impl.locations.impl.AbstractTableDataService
io.deephaven.engine.table.impl.locations.impl.CompositeTableDataService
- All Implemented Interfaces:
TableDataService
,NamedImplementation
Routing
TableDataService
that applies a selector function to pick service(s) for each request. It is assumed
that each service will provide access to a non-overlapping set of table locations for any table key.-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionCompositeTableDataService
(@NotNull String name, @NotNull CompositeTableDataService.ServiceSelector serviceSelector) -
Method Summary
Modifier and TypeMethodDescriptiondescribe()
Get a detailed description string.Get a name for the implementing class.protected @NotNull TableLocationProvider
makeTableLocationProvider
(@NotNull TableKey tableKey) void
reset()
Forget all state for subsequent requests for all tables.void
Forget all state for subsequent requests for a single table.toString()
Methods inherited from class io.deephaven.engine.table.impl.locations.impl.AbstractTableDataService
getName, getTableLocationProvider
-
Constructor Details
-
CompositeTableDataService
public CompositeTableDataService(@NotNull @NotNull String name, @NotNull @NotNull CompositeTableDataService.ServiceSelector serviceSelector) - Parameters:
name
- optional name for this serviceserviceSelector
- Function to map a table key to a set of services that should be queried.
-
-
Method Details
-
reset
public void reset()Description copied from interface:TableDataService
Forget all state for subsequent requests for all tables.- Specified by:
reset
in interfaceTableDataService
- Overrides:
reset
in classAbstractTableDataService
-
reset
Description copied from interface:TableDataService
Forget all state for subsequent requests for a single table.- Specified by:
reset
in interfaceTableDataService
- Overrides:
reset
in classAbstractTableDataService
- Parameters:
key
-TableKey
to forget state for
-
makeTableLocationProvider
@NotNull protected @NotNull TableLocationProvider makeTableLocationProvider(@NotNull @NotNull TableKey tableKey) - Specified by:
makeTableLocationProvider
in classAbstractTableDataService
-
getImplementationName
Description copied from interface:NamedImplementation
Get a name for the implementing class. Useful for abstract classes that implement
LogOutputAppendable
or overridetoString
.The default implementation is correct, but not suitable for high-frequency usage.
- Returns:
- A name for the implementing class
-
toString
-
describe
Description copied from interface:TableDataService
Get a detailed description string.- Returns:
- A description string
-