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
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classNested classes/interfaces inherited from interface io.deephaven.engine.table.ChunkSink
ChunkSink.FillFromContextNested 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_INSTANCEFields inherited from interface io.deephaven.engine.table.ChunkSource
DEFAULT_FILL_INSTANCE, ZERO_LENGTH_CHUNK_SOURCE_ARRAYFields inherited from interface io.deephaven.engine.table.ChunkSource.WithPrev
ZERO_LENGTH_CHUNK_SOURCE_WITH_PREV_ARRAYFields inherited from interface io.deephaven.engine.table.ColumnSource
ZERO_LENGTH_COLUMN_SOURCE_ARRAY -
Method Summary
Modifier and TypeMethodDescriptiondefault voidensureCapacity(long capacity) Equivalent toensureCapacity(capacity, true).voidensureCapacity(long capacity, boolean nullFilled) Ensure that this WritableColumnSource can accept row keys in range[0, capacity).default voidfillFromChunk(@NotNull ChunkSink.FillFromContext context, @NotNull Chunk<? extends Values> src, @NotNull RowSequence rowSequence) Our default, inefficient, implementation.default voidfillFromChunkUnordered(@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.FillFromContextmakeFillFromContext(int chunkCapacity) Provide a default, emptyChunkSink.FillFromContextfor 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 voidset(long key, byte value) default voidset(long key, char value) default voidset(long key, double value) default voidset(long key, float value) default voidset(long key, int value) default voidset(long key, long value) default voidset(long key, short value) default voidvoidsetNull(long key) default voidsetNull(RowSequence orderedKeys) Methods inherited from interface io.deephaven.engine.table.ChunkSource
fillChunk, getChunk, getChunkMethods inherited from interface io.deephaven.engine.table.ChunkSource.WithPrev
fillPrevChunk, getPrevChunk, getPrevChunkMethods inherited from interface io.deephaven.engine.table.ColumnSource
allowsReinterpret, cast, cast, cast, cast, createPreviousTuple, createTuple, createTupleFromValues, exportAllTo, exportElement, exportElement, getChunkType, getComponentType, getPrevSource, getType, isImmutable, isStateless, match, reinterpret, releaseCachedResources, startTrackingPrevValues, tupleLengthMethods 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, getShortMethods inherited from interface io.deephaven.engine.table.FillContextMaker
makeFillContext, makeFillContextMethods inherited from interface io.deephaven.engine.table.GetContextMaker
makeGetContext, makeGetContextMethods inherited from interface io.deephaven.engine.table.TupleExporter
exportAllReinterpretedTo, exportAllReinterpretedTo, exportAllTo, exportElementReinterpretedMethods 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.FillFromContextfor 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:
makeFillFromContextin 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:
fillFromChunkin interfaceChunkSink<T>- Parameters:
context- A context containing all mutable/state related data used in writing the Chunk.src- The source of the datarowSequencerowSequence- AnRowSequencerepresenting 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:ChunkSinkFills the ChunkSink with data from the source, with data corresponding to the keys from the given key chunk.- Specified by:
fillFromChunkUnorderedin interfaceChunkSink<T>- Parameters:
context- A context containing all mutable/state related data used in writing the Chunk.src- The source of the dataRowSequencekeys- ALongChunkrepresenting the keys to be written
-