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 voidprotected voidprotected @NotNull TableLocationmakeTableLocation(@NotNull TableLocationKey locationKey) protected <T> booleanmatchSubscriptionToken(T token) voidrefresh()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, visitLocationKeyMethods inherited from class io.deephaven.engine.table.impl.locations.impl.SubscriptionAggregator
activationFailed, activationSuccessful, checkHasSubscribers, postActivationHook, subscribe, supportsSubscriptions, unsubscribeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.deephaven.util.type.NamedImplementation
getImplementationNameMethods 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:
makeTableLocationin classAbstractTableLocationProvider
-
refresh
public void refresh() -
activateUnderlyingDataSource
protected void activateUnderlyingDataSource()- Overrides:
activateUnderlyingDataSourcein classSubscriptionAggregator<TableLocationProvider.Listener>
-
deactivateUnderlyingDataSource
protected void deactivateUnderlyingDataSource()- Overrides:
deactivateUnderlyingDataSourcein classSubscriptionAggregator<TableLocationProvider.Listener>
-
matchSubscriptionToken
protected <T> boolean matchSubscriptionToken(T token) - Overrides:
matchSubscriptionTokenin classSubscriptionAggregator<TableLocationProvider.Listener>
-