Class IntSsmBackedSource
java.lang.Object
io.deephaven.engine.table.impl.AbstractColumnSource<IntVector>
io.deephaven.engine.table.impl.by.ssmcountdistinct.IntSsmBackedSource
- All Implemented Interfaces:
ChunkSource<Values>
,ChunkSource.WithPrev<Values>
,ColumnSource<IntVector>
,ElementSource<IntVector>
,FillContextMaker
,GetContextMaker
,SsmBackedColumnSource<IntSegmentedSortedMultiset,
,IntVector> ColumnSourceGetDefaults.ForObject<IntVector>
,DefaultChunkSource<Values>
,DefaultChunkSource.WithPrev<Values>
,MutableColumnSource<IntVector>
,MutableColumnSourceGetDefaults.ForObject<IntVector>
,Releasable
,TupleExporter<IntVector>
,TupleSource<IntVector>
public class IntSsmBackedSource
extends AbstractColumnSource<IntVector>
implements ColumnSourceGetDefaults.ForObject<IntVector>, MutableColumnSourceGetDefaults.ForObject<IntVector>, SsmBackedColumnSource<IntSegmentedSortedMultiset,IntVector>
A
SsmBackedColumnSource
for Integers.-
Nested Class Summary
Nested classes/interfaces inherited from class io.deephaven.engine.table.impl.AbstractColumnSource
AbstractColumnSource.DefaultedImmutable<DATA_TYPE>, AbstractColumnSource.DefaultedMutable<DATA_TYPE>
Nested classes/interfaces inherited from interface io.deephaven.engine.table.ChunkSource
ChunkSource.FillContext, ChunkSource.GetContext, ChunkSource.WithPrev<ATTR extends Any>
Nested classes/interfaces inherited from interface io.deephaven.engine.table.impl.DefaultChunkSource
DefaultChunkSource.SupportsContiguousGet<ATTR extends Any>, DefaultChunkSource.WithPrev<ATTR extends Any>
Nested classes/interfaces inherited from interface io.deephaven.engine.table.TupleExporter
TupleExporter.ExportElementFunction<TUPLE_TYPE>
-
Field Summary
Fields inherited from class io.deephaven.engine.table.impl.AbstractColumnSource
componentType, type, updateGraph, USE_RANGES_AVERAGE_RUN_LENGTH
Fields inherited from interface io.deephaven.engine.table.ChunkSource
DEFAULT_FILL_INSTANCE, ZERO_LENGTH_CHUNK_SOURCE_ARRAY
Fields inherited from interface io.deephaven.engine.table.ChunkSource.WithPrev
ZERO_LENGTH_CHUNK_SOURCE_WITH_PREV_ARRAY
Fields inherited from interface io.deephaven.engine.table.ColumnSource
ZERO_LENGTH_COLUMN_SOURCE_ARRAY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear
(long key) Set the SSM at the specified key to nullvoid
clearDeltas
(RowSet indices) Clear out any tracked deltas from recent computations.void
ensureCapacity
(long capacity) Ensure the source has at least `capacity` capacityget
(long rowKey) Get the value from the source.getCurrentSsm
(long key) Get the current SSM at the specified key.getOrCreate
(long key) Get the ssm at the specified key, creating one if none existed.getPrev
(long rowKey) Get the previous value at the rowKey.boolean
Determine if this column source is immutable, meaning that the values at a given row key never change.void
ColumnSource implementations that track previous values have the option to not actually start tracking previous values until this method is called.Methods inherited from class io.deephaven.engine.table.impl.AbstractColumnSource
allowsReinterpret, defaultFillChunk, defaultFillPrevChunk, doReinterpret, fillChunk, fillPrevChunk, getComponentType, getPrevSource, getType, match, reinterpret
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.engine.table.ChunkSource
fillChunk
Methods inherited from interface io.deephaven.engine.table.ChunkSource.WithPrev
fillPrevChunk
Methods inherited from interface io.deephaven.engine.table.ColumnSource
allowsReinterpret, cast, cast, cast, cast, createPreviousTuple, createTuple, createTupleFromValues, exportAllTo, exportElement, exportElement, getChunkType, getComponentType, getPrevSource, getType, isStateless, match, reinterpret, releaseCachedResources, tupleLength
Methods inherited from interface io.deephaven.engine.table.impl.ColumnSourceGetDefaults.ForObject
getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getShort
Methods inherited from interface io.deephaven.engine.table.impl.DefaultChunkSource
getChunk, getChunk, getChunkByFilling, makeFillContext, makeGetContext
Methods inherited from interface io.deephaven.engine.table.impl.DefaultChunkSource.WithPrev
getPrevChunk, getPrevChunk, getPrevChunkByFilling
Methods inherited from interface io.deephaven.engine.table.FillContextMaker
makeFillContext
Methods inherited from interface io.deephaven.engine.table.GetContextMaker
makeGetContext
Methods inherited from interface io.deephaven.engine.table.impl.MutableColumnSourceGetDefaults.ForObject
getPrevBoolean, getPrevByte, getPrevChar, getPrevDouble, getPrevFloat, getPrevInt, getPrevLong, getPrevShort
Methods inherited from interface io.deephaven.engine.table.TupleExporter
exportAllReinterpretedTo, exportAllReinterpretedTo, exportAllTo, exportElementReinterpreted
Methods inherited from interface io.deephaven.engine.table.TupleSource
createTupleFromReinterpretedValues
-
Constructor Details
-
IntSsmBackedSource
public IntSsmBackedSource()
-
-
Method Details
-
getOrCreate
Description copied from interface:SsmBackedColumnSource
Get the ssm at the specified key, creating one if none existed. This method will update the current previous tracking state of the SSM.- Specified by:
getOrCreate
in interfaceSsmBackedColumnSource<IntSegmentedSortedMultiset,
IntVector> - Parameters:
key
- the key to get the ssm for.- Returns:
- the SSM at the key, or a new one.
-
getCurrentSsm
Description copied from interface:SsmBackedColumnSource
Get the current SSM at the specified key. This does not permute it in any way.- Specified by:
getCurrentSsm
in interfaceSsmBackedColumnSource<IntSegmentedSortedMultiset,
IntVector> - Parameters:
key
- the key to get the ssm for.- Returns:
- the SSM
-
clear
public void clear(long key) Description copied from interface:SsmBackedColumnSource
Set the SSM at the specified key to null- Specified by:
clear
in interfaceSsmBackedColumnSource<IntSegmentedSortedMultiset,
IntVector> - Parameters:
key
- the key to get the ssm for.
-
ensureCapacity
public void ensureCapacity(long capacity) Description copied from interface:SsmBackedColumnSource
Ensure the source has at least `capacity` capacity- Specified by:
ensureCapacity
in interfaceSsmBackedColumnSource<IntSegmentedSortedMultiset,
IntVector> - Parameters:
capacity
- the capacity to ensure.
-
getUnderlyingSource
- Specified by:
getUnderlyingSource
in interfaceSsmBackedColumnSource<IntSegmentedSortedMultiset,
IntVector>
-
isImmutable
public boolean isImmutable()Description copied from interface:ColumnSource
Determine if this column source is immutable, meaning that the values at a given row key never change.- Specified by:
isImmutable
in interfaceColumnSource<IntVector>
- Specified by:
isImmutable
in interfaceMutableColumnSource<IntVector>
- Returns:
- true if the values at a given row key of the column source never change, false otherwise
-
get
Description copied from interface:ElementSource
Get the value from the source. This may return boxed values for basic types. RowKeys that are not present are undefined.- Specified by:
get
in interfaceElementSource<IntVector>
- Parameters:
rowKey
- the location in key space to get the value from.- Returns:
- the value at the rowKey, potentially null.
-
getPrev
Description copied from interface:ElementSource
Get the previous value at the rowKey. Previous values are used during anUG
update
cycle to process changes in data. Duringnormal
operation previous values will be identical tocurrent
values. RowKeys that were not present are undefined.- Specified by:
getPrev
in interfaceElementSource<IntVector>
- Parameters:
rowKey
- the location in key space to get the value from.- Returns:
- the previous value at the rowKey, potentially null.
-
startTrackingPrevValues
public void startTrackingPrevValues()Description copied from interface:ColumnSource
ColumnSource implementations that track previous values have the option to not actually start tracking previous values until this method is called. This is an option, not an obligation: some simple ColumnSource implementations (like TSingleValueSource for various T) always track previous values; other implementations (like PrevColumnSource) never do; some (like TArrayColumnSource) only start tracking once this method is called. An immutable column source can not have distinct prev values; therefore it is implemented as a no-op.- Specified by:
startTrackingPrevValues
in interfaceColumnSource<IntVector>
-
clearDeltas
Description copied from interface:SsmBackedColumnSource
Clear out any tracked deltas from recent computations.- Specified by:
clearDeltas
in interfaceSsmBackedColumnSource<IntSegmentedSortedMultiset,
IntVector> - Parameters:
indices
- the set of indices to clear deltas for.
-