Class WritableByteAsBooleanColumnSource
java.lang.Object
io.deephaven.engine.table.impl.AbstractColumnSource<Boolean>
io.deephaven.engine.table.impl.sources.ByteAsBooleanColumnSource
io.deephaven.engine.table.impl.sources.WritableByteAsBooleanColumnSource
- All Implemented Interfaces:
ChunkSink<Values>
,ChunkSource<Values>
,ChunkSource.WithPrev<Values>
,ColumnSource<Boolean>
,ElementSource<Boolean>
,FillContextMaker
,GetContextMaker
,ColumnSourceGetDefaults.ForBoolean
,DefaultChunkSource<Values>
,DefaultChunkSource.WithPrev<Values>
,MutableColumnSource<Boolean>
,MutableColumnSourceGetDefaults.ForBoolean
,FillUnordered<Values>
,Releasable
,TupleExporter<Boolean>
,TupleSource<Boolean>
,WritableColumnSource<Boolean>
public class WritableByteAsBooleanColumnSource
extends ByteAsBooleanColumnSource
implements MutableColumnSourceGetDefaults.ForBoolean, WritableColumnSource<Boolean>
-
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
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
-
Constructor Summary
ConstructorDescriptionWritableByteAsBooleanColumnSource
(@NotNull WritableColumnSource<Byte> alternateColumnSource) -
Method Summary
Modifier and TypeMethodDescriptionvoid
ensureCapacity
(long capacity, boolean nullFilled) Ensure that this WritableColumnSource can accept row keys in range[0, capacity)
.void
fillFromChunk
(@NotNull ChunkSink.FillFromContext context, @NotNull Chunk<? extends Values> src, @NotNull RowSequence rowSequence) Our default, inefficient, implementation.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.makeFillFromContext
(int chunkCapacity) void
set
(long key, byte value) void
void
setNull
(long key) Methods inherited from class io.deephaven.engine.table.impl.sources.ByteAsBooleanColumnSource
allowsReinterpret, doReinterpret, fillChunk, fillChunkUnordered, fillPrevChunk, fillPrevChunkUnordered, get, getPrev, isImmutable, isStateless, makeFillContext, providesFillUnordered
Methods inherited from class io.deephaven.engine.table.impl.AbstractColumnSource
defaultFillChunk, defaultFillPrevChunk, 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, createPreviousTuple, createTuple, createTupleFromValues, exportAllTo, exportElement, exportElement, getChunkType, getComponentType, getPrevSource, getType, isStateless, match, reinterpret, releaseCachedResources, startTrackingPrevValues, tupleLength
Methods inherited from interface io.deephaven.engine.table.impl.ColumnSourceGetDefaults.ForBoolean
getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getShort
Methods inherited from interface io.deephaven.engine.table.impl.DefaultChunkSource
getChunk, getChunk, getChunkByFilling, 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, getPrev
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.MutableColumnSource
isImmutable
Methods inherited from interface io.deephaven.engine.table.impl.MutableColumnSourceGetDefaults.ForBoolean
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
Methods inherited from interface io.deephaven.engine.table.WritableColumnSource
ensureCapacity, set, set, set, set, set, set, setNull
-
Constructor Details
-
WritableByteAsBooleanColumnSource
public WritableByteAsBooleanColumnSource(@NotNull @NotNull WritableColumnSource<Byte> alternateColumnSource)
-
-
Method Details
-
setNull
public void setNull(long key) - Specified by:
setNull
in interfaceWritableColumnSource<Boolean>
-
set
- Specified by:
set
in interfaceWritableColumnSource<Boolean>
-
set
public void set(long key, byte value) - Specified by:
set
in interfaceWritableColumnSource<Boolean>
-
ensureCapacity
public 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<Boolean>
- 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<Values>
- Specified by:
makeFillFromContext
in interfaceWritableColumnSource<Boolean>
-
fillFromChunk
public void fillFromChunk(@NotNull @NotNull ChunkSink.FillFromContext context, @NotNull @NotNull Chunk<? extends Values> src, @NotNull @NotNull RowSequence rowSequence) Description copied from interface:WritableColumnSource
Our default, inefficient, implementation. Inheritors who care should provide a better implementation.- Specified by:
fillFromChunk
in interfaceChunkSink<Values>
- Specified by:
fillFromChunk
in interfaceWritableColumnSource<Boolean>
- 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
public 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<Values>
- Specified by:
fillFromChunkUnordered
in interfaceWritableColumnSource<Boolean>
- 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
-