Class OnDiskDeephavenTableLocation
java.lang.Object
io.deephaven.engine.table.impl.locations.impl.SubscriptionAggregator<TableLocation.Listener>
io.deephaven.engine.table.impl.locations.impl.AbstractTableLocation
io.deephaven.enterprise.locations.local.deephaven.OnDiskDeephavenTableLocation
- All Implemented Interfaces:
LogOutputAppendable,DelegatingLivenessReferent,LivenessReferent,ColumnToCodecMappings,TableLocation,TableLocationState,DeephavenFormatTableLocation,io.deephaven.shadow.enterprise.com.fishlib.base.log.LogOutputAppendable,NamedImplementation
public class OnDiskDeephavenTableLocation
extends AbstractTableLocation
implements DeephavenFormatTableLocation, ColumnToCodecMappings
A
TableLocation for reading Deephaven format tables from a local
filesystem.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.engine.table.impl.locations.TableLocation
TableLocation.Listener -
Field Summary
Fields inherited from class io.deephaven.engine.table.impl.locations.impl.SubscriptionAggregator
subscriptionsFields inherited from interface io.deephaven.engine.table.impl.ColumnToCodecMappings
EMPTYFields inherited from interface io.deephaven.engine.table.impl.locations.TableLocationState
NULL_SIZE, NULL_TIME -
Constructor Summary
ConstructorsConstructorDescriptionOnDiskDeephavenTableLocation(@NotNull EnterpriseTableKey tableKey, @NotNull EnterpriseTableLocationKey tableLocationKey, @Nullable io.deephaven.shadow.enterprise.com.illumon.iris.db.schema.Schema schema, @NotNull File directory, boolean supportsSubscriptions, @Nullable TableDataRefreshService refreshService) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidgetCodecArgs(@NotNull String columnName) getCodecName(@NotNull String columnName) @Nullable io.deephaven.shadow.enterprise.com.illumon.iris.db.tables.TableDefinitionGet the EnterpriseTableDefinitionfor this location.@NotNull List<SortColumn>booleanhasDataIndex(@NotNull String... columns) @Nullable BasicDataIndexloadDataIndex(@NotNull String... columns) static @Nullable TableloadDataIndexTable(@NotNull File directory, @NotNull String[] columns) Load a Data Index from an Enterprise on disk index table.protected @NotNull OnDiskDeephavenColumnLocationmakeColumnLocation(@NotNull String name) protected <T> booleanmatchSubscriptionToken(T token) voidrefresh()voidsetSnapshot(io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.local.TableLocationMetadataIndex.LocationSnapshot snapshot) Set the location snapshot data from themetadata index.Methods inherited from class io.deephaven.engine.table.impl.locations.impl.AbstractTableLocation
asLivenessReferent, clearColumnLocations, deliverInitialSnapshot, destroy, getColumnLocation, getDataIndex, getKey, getLastModifiedTimeMillis, getRowSet, getSize, getStateLock, getTableKey, handleUpdate, handleUpdate, handleUpdateInternal, handleUpdateInternal, initializeState, toStringMethods 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.enterprise.locations.DeephavenFormatTableLocation
appendMethods inherited from interface io.deephaven.engine.liveness.DelegatingLivenessReferent
dropReference, getWeakReference, tryRetainReferenceMethods inherited from interface io.deephaven.engine.liveness.LivenessReferent
getReferentDescription, retainReferenceMethods inherited from interface io.deephaven.util.type.NamedImplementation
getImplementationNameMethods inherited from interface io.deephaven.engine.table.impl.locations.TableLocation
append, getColumnLocation, getDataIndex, getKey, getTableKey, subscribe, supportsSubscriptions, toGenericString, toStringDetailed, toStringHelper, unsubscribeMethods inherited from interface io.deephaven.engine.table.impl.locations.TableLocationState
copyStateValuesTo, getLastModifiedTimeMillis, getRowSet, getSize, getStateLock
-
Constructor Details
-
OnDiskDeephavenTableLocation
public OnDiskDeephavenTableLocation(@NotNull @NotNull EnterpriseTableKey tableKey, @NotNull @NotNull EnterpriseTableLocationKey tableLocationKey, @Nullable @Nullable io.deephaven.shadow.enterprise.com.illumon.iris.db.schema.Schema schema, @NotNull @NotNull File directory, boolean supportsSubscriptions, @Nullable @Nullable TableDataRefreshService refreshService)
-
-
Method Details
-
refresh
public void refresh()- Specified by:
refreshin interfaceTableLocation
-
getSortedColumns
- Specified by:
getSortedColumnsin interfaceTableLocation
-
activateUnderlyingDataSource
protected void activateUnderlyingDataSource()- Overrides:
activateUnderlyingDataSourcein classSubscriptionAggregator<TableLocation.Listener>
-
deactivateUnderlyingDataSource
protected void deactivateUnderlyingDataSource()- Overrides:
deactivateUnderlyingDataSourcein classSubscriptionAggregator<TableLocation.Listener>
-
matchSubscriptionToken
protected <T> boolean matchSubscriptionToken(T token) - Overrides:
matchSubscriptionTokenin classSubscriptionAggregator<TableLocation.Listener>
-
makeColumnLocation
@NotNull protected @NotNull OnDiskDeephavenColumnLocation makeColumnLocation(@NotNull @NotNull String name) - Specified by:
makeColumnLocationin classAbstractTableLocation
-
getDataIndexColumns
- Specified by:
getDataIndexColumnsin interfaceTableLocation
-
hasDataIndex
- Specified by:
hasDataIndexin interfaceTableLocation
-
loadDataIndex
- Specified by:
loadDataIndexin classAbstractTableLocation
-
loadDataIndexTable
@Nullable public static @Nullable Table loadDataIndexTable(@NotNull @NotNull File directory, @NotNull @NotNull String[] columns) Load a Data Index from an Enterprise on disk index table.- Parameters:
directory- the location of the table.columns- the columns indexed.- Returns:
- a
Tablecontaining the index, or null if one was not found
-
getCodecName
- Specified by:
getCodecNamein interfaceColumnToCodecMappings
-
getCodecArgs
- Specified by:
getCodecArgsin interfaceColumnToCodecMappings
-
getDheDefinition
@Nullable public @Nullable io.deephaven.shadow.enterprise.com.illumon.iris.db.tables.TableDefinition getDheDefinition()Get the EnterpriseTableDefinitionfor this location.- Returns:
- the Enterprise
TableDefinition
-
setSnapshot
public void setSnapshot(@NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.local.TableLocationMetadataIndex.LocationSnapshot snapshot) Set the location snapshot data from themetadata index.- Parameters:
snapshot- the metadata index for this location.
-