Class RegionedColumnSourceManager
java.lang.Object
io.deephaven.util.referencecounting.ReferenceCounted
io.deephaven.engine.liveness.ReferenceCountedLivenessReferent
io.deephaven.engine.liveness.ReferenceCountedLivenessNode
io.deephaven.engine.liveness.LivenessArtifact
io.deephaven.engine.table.impl.sources.regioned.RegionedColumnSourceManager
- All Implemented Interfaces:
LogOutputAppendable
,LivenessManager
,LivenessNode
,LivenessReferent
,ColumnSourceManager
,Serializable
Manage column sources made up of regions in their own row key address space.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLocation
(@NotNull TableLocation tableLocation) Add a table location to the list to be checked in run().final Collection<TableLocation>
Get the added locations, first the ones that have been "included" (found to exist with non-zero size) in order of inclusion, then the remainder in order of discovery.void
deliverError
(@NotNull Throwable error, TableListener.Entry entry) Advise this ColumnSourceManager that an error has occurred, and that it will no longer berefreshed
.final Map<String,
? extends ColumnSource<?>> Get a map of name toColumnSource
for the column sources maintained by this manager.final Collection<TableLocation>
Get the added locations that have been found to exist and have non-zero size.Observe initial sizes for the previously added table locations, and update the managed column sources accordingly.final boolean
isEmpty()
Report whether this ColumnSourceManager has no locations that have been "included" (i.e.Get the name of the column that contains theTableLocation
values fromColumnSourceManager.locationTable()
.Get the added locations that have been found to exist and have non-zero size as a table containing therow sets
for each location.refresh()
Observe size changes in the previously added table locations, and update the managed column sources accordingly.boolean
removeLocationKey
(@NotNull ImmutableTableLocationKey locationKey) Remove a table location key from the sources.Get the name of the column that contains theRowSet
values fromColumnSourceManager.locationTable()
.Methods inherited from class io.deephaven.engine.liveness.LivenessArtifact
manageWithCurrentScope
Methods inherited from class io.deephaven.engine.liveness.ReferenceCountedLivenessNode
getWeakReference, initializeTransientFieldsForLiveness, onReferenceCountAtZero, tryManage, tryUnmanage, tryUnmanage
Methods inherited from class io.deephaven.engine.liveness.ReferenceCountedLivenessReferent
destroy, dropReference, tryRetainReference
Methods inherited from class io.deephaven.util.referencecounting.ReferenceCounted
append, decrementReferenceCount, forceReferenceCountToZero, getReferenceCountDebug, incrementReferenceCount, resetReferenceCount, toString, tryDecrementReferenceCount, tryIncrementReferenceCount
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.deephaven.engine.liveness.LivenessManager
manage
Methods inherited from interface io.deephaven.engine.liveness.LivenessNode
unmanage, unmanage
Methods inherited from interface io.deephaven.engine.liveness.LivenessReferent
dropReference, getReferentDescription, getWeakReference, retainReference, tryRetainReference
-
Method Details
-
addLocation
Description copied from interface:ColumnSourceManager
Add a table location to the list to be checked in run().- Specified by:
addLocation
in interfaceColumnSourceManager
- Parameters:
tableLocation
- The table location to be added
-
removeLocationKey
Description copied from interface:ColumnSourceManager
Remove a table location key from the sources.- Specified by:
removeLocationKey
in interfaceColumnSourceManager
- Parameters:
locationKey
- the location key being removed- Returns:
- true if the location key was actually removed
-
initialize
Description copied from interface:ColumnSourceManager
Observe initial sizes for the previously added table locations, and update the managed column sources accordingly. Create anydata indexes
that may be derived from the locations.- Specified by:
initialize
in interfaceColumnSourceManager
- Returns:
- The initial set of initially-available row keys, to be owned by the caller. This row set will have a
data indexer
populated with any data indexes that were created.
-
refresh
Description copied from interface:ColumnSourceManager
Observe size changes in the previously added table locations, and update the managed column sources accordingly.- Specified by:
refresh
in interfaceColumnSourceManager
- Returns:
- The set of added row keys, to be owned by the caller
-
deliverError
Description copied from interface:ColumnSourceManager
Advise this ColumnSourceManager that an error has occurred, and that it will no longer berefreshed
. This method should ensure that the error is delivered to downstreamlisteners
if appropriate.- Specified by:
deliverError
in interfaceColumnSourceManager
- Parameters:
error
- The error that occurredentry
- The failing node's entry, if known
-
allLocations
Description copied from interface:ColumnSourceManager
Get the added locations, first the ones that have been "included" (found to exist with non-zero size) in order of inclusion, then the remainder in order of discovery.- Specified by:
allLocations
in interfaceColumnSourceManager
- Returns:
- All known locations, ordered as described
-
includedLocations
Description copied from interface:ColumnSourceManager
Get the added locations that have been found to exist and have non-zero size.- Specified by:
includedLocations
in interfaceColumnSourceManager
- Returns:
- The added locations that have been found to exist and have non-zero size
-
locationTable
Description copied from interface:ColumnSourceManager
Get the added locations that have been found to exist and have non-zero size as a table containing therow sets
for each location. May only be called afterColumnSourceManager.initialize()
. The returned table will also have columns corresponding to the partitions found in the locations, for the convenience of many downstream operations.- Specified by:
locationTable
in interfaceColumnSourceManager
- Returns:
- The added locations that have been found to exist and have non-zero size
-
locationColumnName
Description copied from interface:ColumnSourceManager
Get the name of the column that contains theTableLocation
values fromColumnSourceManager.locationTable()
.- Specified by:
locationColumnName
in interfaceColumnSourceManager
- Returns:
- The name of the location column
-
rowSetColumnName
Description copied from interface:ColumnSourceManager
Get the name of the column that contains theRowSet
values fromColumnSourceManager.locationTable()
.- Specified by:
rowSetColumnName
in interfaceColumnSourceManager
- Returns:
- The name of the row set column
-
isEmpty
public final boolean isEmpty()Description copied from interface:ColumnSourceManager
Report whether this ColumnSourceManager has no locations that have been "included" (i.e. found to exist with non-zero size).- Specified by:
isEmpty
in interfaceColumnSourceManager
- Returns:
- True if there are no included locations
-
getColumnSources
Description copied from interface:ColumnSourceManager
Get a map of name toColumnSource
for the column sources maintained by this manager.- Specified by:
getColumnSources
in interfaceColumnSourceManager
- Returns:
- An unmodifiable view of the column source map maintained by this manager.
-