Class SingleValueColumnSource<T>
java.lang.Object
io.deephaven.engine.table.impl.AbstractColumnSource<T>
io.deephaven.engine.table.impl.sources.SingleValueColumnSource<T>
- All Implemented Interfaces:
ChunkSink<Values>
,ChunkSource<Values>
,ChunkSource.WithPrev<Values>
,ColumnSource<T>
,ElementSource<T>
,FillContextMaker
,GetContextMaker
,DefaultChunkSource<Values>
,DefaultChunkSource.WithPrev<Values>
,FillUnordered<Values>
,InMemoryColumnSource
,RowKeyAgnosticChunkSource<Values>
,Releasable
,TupleExporter<T>
,TupleSource<T>
,WritableColumnSource<T>
- Direct Known Subclasses:
BooleanSingleValueSource
,ByteSingleValueSource
,CharacterSingleValueSource
,DoubleSingleValueSource
,FloatSingleValueSource
,IntegerSingleValueSource
,LongSingleValueSource
,ObjectSingleValueSource
,ShortSingleValueSource
public abstract class SingleValueColumnSource<T>
extends AbstractColumnSource<T>
implements WritableColumnSource<T>, ChunkSink<Values>, InMemoryColumnSource, RowKeyAgnosticChunkSource<Values>
-
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.ChunkSink
ChunkSink.FillFromContext
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>
Nested classes/interfaces inherited from interface io.deephaven.engine.table.WritableColumnSource
WritableColumnSource.ByteFiller, WritableColumnSource.CharFiller, WritableColumnSource.DoubleFiller, WritableColumnSource.FloatFiller, WritableColumnSource.IntFiller, WritableColumnSource.LongFiller, WritableColumnSource.ObjectFiller, WritableColumnSource.ShortFiller, WritableColumnSource.SinkFiller
-
Field Summary
Modifier and TypeFieldDescriptionprotected long
protected boolean
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.ChunkSink
DEFAULT_FILL_FROM_INSTANCE
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
Fields inherited from interface io.deephaven.engine.table.impl.sources.InMemoryColumnSource
TWO_DIMENSIONAL_COLUMN_SOURCE_THRESHOLD
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
ensureCapacity
(long capacity, boolean nullFilled) Ensure that this WritableColumnSource can accept row keys in range[0, capacity)
.static <T> SingleValueColumnSource<T>
getSingleValueColumnSource
(Class<T> type) static <T> SingleValueColumnSource<T>
getSingleValueColumnSource
(Class<T> type, Class<?> componentType) boolean
Determine if this column source is immutable, meaning that the values at a given row key never change.makeFillFromContext
(int chunkCapacity) void
set
(byte value) void
set
(char value) void
set
(double value) void
set
(float value) void
set
(int value) void
set
(long value) void
set
(short value) void
void
setNull()
final void
setNull
(long key) final void
setNull
(RowSequence rowSequence) final 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.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.ElementSource
get, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getPrev, getPrevBoolean, getPrevByte, getPrevChar, getPrevDouble, getPrevFloat, getPrevInt, getPrevLong, getPrevShort, getShort
Methods inherited from interface io.deephaven.engine.table.FillContextMaker
makeFillContext
Methods inherited from interface io.deephaven.engine.table.impl.sources.FillUnordered
fillChunkUnordered, fillPrevChunkUnordered, providesFillUnordered
Methods inherited from interface io.deephaven.engine.table.GetContextMaker
makeGetContext
Methods inherited from interface io.deephaven.engine.table.impl.sources.InMemoryColumnSource
isInMemory
Methods inherited from interface io.deephaven.engine.table.TupleExporter
exportAllReinterpretedTo, exportAllReinterpretedTo, exportAllTo, exportElementReinterpreted
Methods inherited from interface io.deephaven.engine.table.TupleSource
createTupleFromReinterpretedValues
Methods inherited from interface io.deephaven.engine.table.WritableColumnSource
ensureCapacity, fillFromChunk, fillFromChunkUnordered, set, set, set, set, set, set, set, set
-
Field Details
-
changeTime
protected transient long changeTime -
isTrackingPrevValues
protected boolean isTrackingPrevValues
-
-
Method Details
-
startTrackingPrevValues
public final 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<T>
-
getSingleValueColumnSource
-
getSingleValueColumnSource
public static <T> SingleValueColumnSource<T> getSingleValueColumnSource(Class<T> type, Class<?> componentType) -
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<T>
- Returns:
- true if the values at a given row key of the column source never change, false otherwise
-
set
public void set(char value) -
set
public void set(byte value) -
set
public void set(double value) -
set
public void set(float value) -
set
public void set(short value) -
set
public void set(long value) -
set
public void set(int value) -
set
-
setNull
public void setNull() -
setNull
public final void setNull(long key) - Specified by:
setNull
in interfaceWritableColumnSource<T>
-
setNull
- Specified by:
setNull
in interfaceWritableColumnSource<T>
-
ensureCapacity
public final void ensureCapacity(long capacity, boolean nullFilled) Description copied from interface:WritableColumnSource
Ensure that this WritableColumnSource can accept row keys in range[0, capacity)
.- Specified by:
ensureCapacity
in interfaceWritableColumnSource<T>
- Parameters:
capacity
- The new minimum capacitynullFilled
- Whether data should be "null-filled". If true, get operations at row keys that have not been set will return the appropriate null value; otherwise such gets produce undefined results.
-
makeFillFromContext
Description copied from interface:WritableColumnSource
Provide a default, emptyChunkSink.FillFromContext
for use with our defaultWritableColumnSource.fillFromChunk(io.deephaven.engine.table.ChunkSink.FillFromContext, io.deephaven.chunk.Chunk<? extends io.deephaven.chunk.attributes.Values>, io.deephaven.engine.rowset.RowSequence)
.- Specified by:
makeFillFromContext
in interfaceChunkSink<T>
- Specified by:
makeFillFromContext
in interfaceWritableColumnSource<T>
-