Package io.deephaven.engine.table
Interface WritableColumnSource<T>
- All Superinterfaces:
ChunkSink<Values>
,ChunkSource<Values>
,ChunkSource.WithPrev<Values>
,ColumnSource<T>
,ElementSource<T>
,FillContextMaker
,GetContextMaker
,Releasable
,TupleExporter<T>
,TupleSource<T>
- All Known Implementing Classes:
ArrayBackedColumnSource
,BooleanArraySource
,BooleanSingleValueSource
,BooleanSparseArraySource
,BooleanSparseArraySource.ReinterpretedAsByte
,ByteArraySource
,ByteSingleValueSource
,ByteSparseArraySource
,CharacterArraySource
,CharacterSingleValueSource
,CharacterSparseArraySource
,DeltaAwareColumnSource
,DoubleArraySource
,DoubleSingleValueSource
,DoubleSparseArraySource
,FloatArraySource
,FloatSingleValueSource
,FloatSparseArraySource
,Immutable2DByteArraySource
,Immutable2DCharArraySource
,Immutable2DDoubleArraySource
,Immutable2DFloatArraySource
,Immutable2DInstantArraySource
,Immutable2DIntArraySource
,Immutable2DLongArraySource
,Immutable2DNanosBasedTimeArraySource
,Immutable2DObjectArraySource
,Immutable2DShortArraySource
,Immutable2DZonedDateTimeArraySource
,ImmutableByteArraySource
,ImmutableCharArraySource
,ImmutableDoubleArraySource
,ImmutableFloatArraySource
,ImmutableInstantArraySource
,ImmutableIntArraySource
,ImmutableLongArraySource
,ImmutableNanosBasedTimeArraySource
,ImmutableObjectArraySource
,ImmutableShortArraySource
,ImmutableZonedDateTimeArraySource
,InstantArraySource
,InstantSparseArraySource
,IntegerArraySource
,IntegerSingleValueSource
,IntegerSparseArraySource
,LongArraySource
,LongSingleValueSource
,LongSparseArraySource
,NanosBasedTimeArraySource
,NanosBasedTimeSparseArraySource
,NullValueColumnSource
,ObjectArraySource
,ObjectSingleValueSource
,ObjectSparseArraySource
,ShortArraySource
,ShortSingleValueSource
,ShortSparseArraySource
,SingleValueColumnSource
,SparseArrayColumnSource
,WritableByteAsBooleanColumnSource
,WritableRedirectedColumnSource
,ZonedDateTimeArraySource
,ZonedDateTimeSparseArraySource
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
static class
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.TupleExporter
TupleExporter.ExportElementFunction<TUPLE_TYPE>
-
Field Summary
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
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
ensureCapacity
(long capacity) Equivalent toensureCapacity(capacity, true)
.void
ensureCapacity
(long capacity, boolean nullFilled) Ensure that this WritableColumnSource can accept row keys in range[0, capacity)
.default void
fillFromChunk
(@NotNull ChunkSink.FillFromContext context, @NotNull Chunk<? extends Values> src, @NotNull RowSequence rowSequence) Our default, inefficient, implementation.default void
fillFromChunkUnordered
(@NotNull ChunkSink.FillFromContext context, @NotNull Chunk<? extends Values> src, @NotNull LongChunk<RowKeys> keys) Fills the ChunkSink with data from the source, with data corresponding to the keys from the given key chunk.default ChunkSink.FillFromContext
makeFillFromContext
(int chunkCapacity) Provide a default, emptyChunkSink.FillFromContext
for use with our defaultfillFromChunk(io.deephaven.engine.table.ChunkSink.FillFromContext, io.deephaven.chunk.Chunk<? extends io.deephaven.chunk.attributes.Values>, io.deephaven.engine.rowset.RowSequence)
.default void
set
(long key, byte value) default void
set
(long key, char value) default void
set
(long key, double value) default void
set
(long key, float value) default void
set
(long key, int value) default void
set
(long key, long value) default void
set
(long key, short value) default void
void
setNull
(long key) default void
setNull
(RowSequence orderedKeys) Methods inherited from interface io.deephaven.engine.table.ChunkSource
fillChunk, getChunk, getChunk
Methods inherited from interface io.deephaven.engine.table.ChunkSource.WithPrev
fillPrevChunk, getPrevChunk, getPrevChunk
Methods inherited from interface io.deephaven.engine.table.ColumnSource
allowsReinterpret, cast, cast, createPreviousTuple, createTuple, createTupleFromValues, exportAllTo, exportElement, exportElement, getChunkType, getComponentType, getPrevSource, getType, isImmutable, isStateless, match, reinterpret, releaseCachedResources, startTrackingPrevValues, tupleLength
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, makeFillContext
Methods inherited from interface io.deephaven.engine.table.GetContextMaker
makeGetContext, makeGetContext
Methods inherited from interface io.deephaven.engine.table.TupleExporter
exportAllReinterpretedTo, exportAllReinterpretedTo, exportAllTo, exportElementReinterpreted
Methods inherited from interface io.deephaven.engine.table.TupleSource
createTupleFromReinterpretedValues
-
Method Details
-
set
-
set
default void set(long key, byte value) -
set
default void set(long key, char value) -
set
default void set(long key, double value) -
set
default void set(long key, float value) -
set
default void set(long key, int value) -
set
default void set(long key, long value) -
set
default void set(long key, short value) -
setNull
void setNull(long key) -
setNull
-
ensureCapacity
Equivalent toensureCapacity(capacity, true)
. -
ensureCapacity
void ensureCapacity(long capacity, boolean nullFilled) Ensure that this WritableColumnSource can accept row keys in range[0, capacity)
.- 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
Provide a default, emptyChunkSink.FillFromContext
for use with our defaultfillFromChunk(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>
-
fillFromChunk
default void fillFromChunk(@NotNull @NotNull ChunkSink.FillFromContext context, @NotNull @NotNull Chunk<? extends Values> src, @NotNull @NotNull RowSequence rowSequence) Our default, inefficient, implementation. Inheritors who care should provide a better implementation.- Specified by:
fillFromChunk
in interfaceChunkSink<T>
- Parameters:
context
- A context containing all mutable/state related data used in writing the Chunk.src
- The source of the datarowSequence
rowSequence
- AnRowSequence
representing the keys to be written
-
fillFromChunkUnordered
default void fillFromChunkUnordered(@NotNull @NotNull ChunkSink.FillFromContext context, @NotNull @NotNull Chunk<? extends Values> src, @NotNull @NotNull LongChunk<RowKeys> keys) Description copied from interface:ChunkSink
Fills the ChunkSink with data from the source, with data corresponding to the keys from the given key chunk.- Specified by:
fillFromChunkUnordered
in interfaceChunkSink<T>
- Parameters:
context
- A context containing all mutable/state related data used in writing the Chunk.src
- The source of the dataRowSequence
keys
- ALongChunk
representing the keys to be written
-