Class CoreFromEnterpriseTableLocationProvider
java.lang.Object
io.deephaven.engine.table.impl.locations.impl.SubscriptionAggregator<TableLocationProvider.Listener>
io.deephaven.engine.table.impl.locations.impl.AbstractTableLocationProvider
io.deephaven.enterprise.compatibility.locationprovider.CoreFromEnterpriseTableLocationProvider
- All Implemented Interfaces:
TableLocationProvider
,NamedImplementation
This class adapts a Legacy Enterprise TableLocationProvider into a Core TableLocationProvider.
In general, we create Core TableLocationProviders; but there are some circumstances where an Enterprise TableLocationProvider is needed and we must adapt it to the Core engine. In particular, this is used to implement a last-by DIS. The DataImportServer provides a TableLocationProvider (and we need that specific one for consistency), but we want to export our resultant tables over Barrage.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.engine.table.impl.locations.TableLocationProvider
TableLocationProvider.Listener
-
Field Summary
Fields inherited from class io.deephaven.engine.table.impl.locations.impl.SubscriptionAggregator
subscriptions
-
Constructor Summary
ConstructorsConstructorDescriptionCoreFromEnterpriseTableLocationProvider
(io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.TableLocationProvider enterpriseTableLocationProvider, String partitionColumnName, io.deephaven.shadow.enterprise.com.illumon.iris.db.tables.TableDefinition enterpriseDefinition) Create a Core TableLocationProvider that wraps the given Enterprise TableLocationProvider. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected @NotNull TableLocation
makeTableLocation
(@NotNull TableLocationKey locationKey) protected <T> boolean
matchSubscriptionToken
(T token) void
refresh()
Methods inherited from class io.deephaven.engine.table.impl.locations.impl.AbstractTableLocationProvider
beginTransaction, deliverInitialSnapshot, doInitialization, endTransaction, ensureInitialized, getKey, getLocationUpdateMode, getTableLocationIfPresent, getTableLocationKeys, getUpdateMode, handleTableLocationKeyAdded, handleTableLocationKeyAdded, handleTableLocationKeyRemoved, hasTableLocationKey, isInitialized, removeTableLocationKey, setInitialized, toString, visitLocationKey
Methods inherited from class io.deephaven.engine.table.impl.locations.impl.SubscriptionAggregator
activationFailed, activationSuccessful, checkHasSubscribers, postActivationHook, subscribe, supportsSubscriptions, unsubscribe
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.deephaven.util.type.NamedImplementation
getImplementationName
Methods inherited from interface io.deephaven.engine.table.impl.locations.TableLocationProvider
getName, getTableLocation, getTableLocationKeys, getTableLocationKeys, subscribe, supportsSubscriptions, unsubscribe
-
Constructor Details
-
CoreFromEnterpriseTableLocationProvider
public CoreFromEnterpriseTableLocationProvider(io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.TableLocationProvider enterpriseTableLocationProvider, String partitionColumnName, io.deephaven.shadow.enterprise.com.illumon.iris.db.tables.TableDefinition enterpriseDefinition) Create a Core TableLocationProvider that wraps the given Enterprise TableLocationProvider.- Parameters:
enterpriseTableLocationProvider
- the Enterprise TableLocationProviderpartitionColumnName
- the name of the column partition for this TableenterpriseDefinition
-
-
-
Method Details
-
makeTableLocation
@NotNull protected @NotNull TableLocation makeTableLocation(@NotNull @NotNull TableLocationKey locationKey) - Specified by:
makeTableLocation
in classAbstractTableLocationProvider
-
refresh
public void refresh() -
activateUnderlyingDataSource
protected void activateUnderlyingDataSource()- Overrides:
activateUnderlyingDataSource
in classSubscriptionAggregator<TableLocationProvider.Listener>
-
deactivateUnderlyingDataSource
protected void deactivateUnderlyingDataSource()- Overrides:
deactivateUnderlyingDataSource
in classSubscriptionAggregator<TableLocationProvider.Listener>
-
matchSubscriptionToken
protected <T> boolean matchSubscriptionToken(T token) - Overrides:
matchSubscriptionToken
in classSubscriptionAggregator<TableLocationProvider.Listener>
-