Class CharacterInstantIntegerColumnTupleSource
- All Implemented Interfaces:
ChunkSource<Values>
,ChunkSource.WithPrev<Values>
,FillContextMaker
,GetContextMaker
,DefaultChunkSource<Values>
,DefaultChunkSource.WithPrev<Values>
,TupleExporter<CharLongIntTuple>
,TupleSource<CharLongIntTuple>
TupleSource
that produces key column values from ColumnSource
types Character, Instant, and Integer.
-
Nested Class Summary
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
Modifier and TypeFieldDescriptionstatic final ThreeColumnTupleSourceFactory<CharLongIntTuple,
Character, Instant, Integer> ThreeColumnTupleSourceFactory
instance to create instances ofCharacterInstantIntegerColumnTupleSource
.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
-
Constructor Summary
ConstructorDescriptionCharacterInstantIntegerColumnTupleSource
(@NotNull ColumnSource<Character> columnSource1, @NotNull ColumnSource<Instant> columnSource2, @NotNull ColumnSource<Integer> columnSource3) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
convertChunks
(@NotNull WritableChunk<? super Values> destination, int chunkSize, Chunk<? extends Values>[] chunks) final CharLongIntTuple
createPreviousTuple
(long rowKey) Create a tuple for previous key column values at the supplied row key.final CharLongIntTuple
createTuple
(long rowKey) Create a tuple for key column values at the supplied row key.final CharLongIntTuple
createTupleFromReinterpretedValues
(@NotNull Object... values) Create a tuple for the supplied reinterpreted values.final CharLongIntTuple
createTupleFromValues
(@NotNull Object... values) Create a tuple for the supplied (boxed) values.final void
exportAllReinterpretedTo
(Object @NotNull [] dest, @NotNull CharLongIntTuple tuple) Fill anObject[]
with all element from the tuple, boxing as necessary.final void
exportAllReinterpretedTo
(Object @NotNull [] dest, @NotNull CharLongIntTuple tuple, int @NotNull [] map) Fill an Object[] with all element from the tuple, boxing as necessary, mapping the tuple elements to the destination array using the provided int[] map.final void
exportAllTo
(Object @NotNull [] dest, @NotNull CharLongIntTuple tuple) Fill anObject[]
with all elements from the tuple, boxing as necessary.final void
exportAllTo
(Object @NotNull [] dest, @NotNull CharLongIntTuple tuple, int @NotNull [] map) Fill anObject[]
with all elements from the tuple, boxing as necessary, mapping the tuple elements to the destination array using the providedint[]
{code map}.final Object
exportElement
(@NotNull CharLongIntTuple tuple, int elementIndex) Export a single element (identified byelementIndex
) from the tuple, boxing as necessary.final <ELEMENT_TYPE>
voidexportElement
(@NotNull CharLongIntTuple tuple, int elementIndex, @NotNull WritableColumnSource<ELEMENT_TYPE> writableSource, long destinationRowKey) Export a single element from the tuple, identified by its element index, to the destination row key of the supplied writable source.final Object
exportElementReinterpreted
(@NotNull CharLongIntTuple tuple, int elementIndex) Export a single element (identified byelementIndex
) from the tuple, boxing as necessary.final int
Get the number of elements in tuples supported by this TupleExporter.Methods inherited from class io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource
fillChunk, fillPrevChunk, getChunkType, makeFillContext
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.impl.DefaultChunkSource
getChunk, getChunk, getChunkByFilling, makeGetContext
Methods inherited from interface io.deephaven.engine.table.impl.DefaultChunkSource.WithPrev
getPrevChunk, getPrevChunk, getPrevChunkByFilling, getPrevSource
Methods inherited from interface io.deephaven.engine.table.FillContextMaker
makeFillContext
Methods inherited from interface io.deephaven.engine.table.GetContextMaker
makeGetContext
-
Field Details
-
FACTORY
public static final ThreeColumnTupleSourceFactory<CharLongIntTuple,Character, FACTORYInstant, Integer> ThreeColumnTupleSourceFactory
instance to create instances ofCharacterInstantIntegerColumnTupleSource
.
-
-
Constructor Details
-
CharacterInstantIntegerColumnTupleSource
public CharacterInstantIntegerColumnTupleSource(@NotNull @NotNull ColumnSource<Character> columnSource1, @NotNull @NotNull ColumnSource<Instant> columnSource2, @NotNull @NotNull ColumnSource<Integer> columnSource3)
-
-
Method Details
-
createTuple
Description copied from interface:TupleSource
Create a tuple for key column values at the supplied row key.- Parameters:
rowKey
- The row key- Returns:
- The resulting tuple
-
createPreviousTuple
Description copied from interface:TupleSource
Create a tuple for previous key column values at the supplied row key.- Parameters:
rowKey
- The row key- Returns:
- The resulting tuple
-
createTupleFromValues
Description copied from interface:TupleSource
Create a tuple for the supplied (boxed) values.- Parameters:
values
- The values- Returns:
- The resulting tuple
-
createTupleFromReinterpretedValues
public final CharLongIntTuple createTupleFromReinterpretedValues(@NotNull @NotNull Object... values) Description copied from interface:TupleSource
Create a tuple for the supplied reinterpreted values.- Parameters:
values
- The values- Returns:
- The resulting tuple
-
tupleLength
public final int tupleLength()Description copied from interface:TupleExporter
Get the number of elements in tuples supported by this TupleExporter.- Returns:
- The number of elements in tuples supported by this TupleExporter
-
exportElement
public final <ELEMENT_TYPE> void exportElement(@NotNull @NotNull CharLongIntTuple tuple, int elementIndex, @NotNull @NotNull WritableColumnSource<ELEMENT_TYPE> writableSource, long destinationRowKey) Description copied from interface:TupleExporter
Export a single element from the tuple, identified by its element index, to the destination row key of the supplied writable source.For the empty tuple, this is unsupported.
For singles, this will copy the sole element, possibly in boxed form.
For doubles and longer, this will copy the specified element without any unnecessary boxing.
- Parameters:
tuple
- The tuple to export an element fromelementIndex
- The element index to exportwritableSource
- The destinationdestinationRowKey
- The destination row key
-
exportElement
Description copied from interface:TupleExporter
Export a single element (identified byelementIndex
) from the tuple, boxing as necessary.For the empty tuple, this is unsupported.
- Parameters:
tuple
- The tuple to export an element fromelementIndex
- The element index to export- Returns:
- The exported element, boxed when necessary
-
exportAllTo
Description copied from interface:TupleExporter
Fill anObject[]
with all elements from the tuple, boxing as necessary.For the empty tuple, this is unsupported.
- Parameters:
dest
- The destinationObject[]
tuple
- The tuple to export from
-
exportAllTo
public final void exportAllTo(Object @NotNull [] dest, @NotNull @NotNull CharLongIntTuple tuple, int @NotNull [] map) Description copied from interface:TupleExporter
Fill anObject[]
with all elements from the tuple, boxing as necessary, mapping the tuple elements to the destination array using the providedint[]
{code map}. This map contains the destination index for each tuple element in order.Providing
map = new int{1, 2, 0}
means that the 0th element of the tuple will be written indest[1]
, the 1st element of the tuple will be written indest[2]
, and the 2nd element of the tuple will be written indest[0]
.For the empty tuple, this is unsupported.
- Parameters:
dest
- The destinationObject[]
tuple
- The tuple to export frommap
- Instructions where to write each tuple element indest
-
exportElementReinterpreted
public final Object exportElementReinterpreted(@NotNull @NotNull CharLongIntTuple tuple, int elementIndex) Description copied from interface:TupleExporter
Export a single element (identified byelementIndex
) from the tuple, boxing as necessary. If the tuple has been internally reinterpreted, return the reinterpreted value.For the empty tuple, this is unsupported.
- Parameters:
tuple
- The tuple to export an element fromelementIndex
- The element index to export- Returns:
- The exported element, reinterpreted if internally reinterpreted, boxed when necessary
-
exportAllReinterpretedTo
public final void exportAllReinterpretedTo(Object @NotNull [] dest, @NotNull @NotNull CharLongIntTuple tuple) Description copied from interface:TupleExporter
Fill anObject[]
with all element from the tuple, boxing as necessary. If the tuple has been internally reinterpreted, will fill with reinterpreted values.For the empty tuple, this is unsupported.
- Parameters:
dest
- The destinationObject[]
tuple
- The tuple to export from
-
exportAllReinterpretedTo
public final void exportAllReinterpretedTo(Object @NotNull [] dest, @NotNull @NotNull CharLongIntTuple tuple, int @NotNull [] map) Description copied from interface:TupleExporter
Fill an Object[] with all element from the tuple, boxing as necessary, mapping the tuple elements to the destination array using the provided int[] map. This map contains the destination index for each tuple element in order. will fill with reinterpreted values.Providing
map = new int{1, 2, 0}
means that the 0th element of the tuple will be written indest[1]
, the 1st element of the tuple will be written indest[2]
, and the 2nd element of the tuple will be written indest[0]
.For the empty tuple, this is unsupported.
- Parameters:
dest
- The destinationObject[]
tuple
- The tuple to export frommap
- Instructions where to write each tuple element indest
-
convertChunks
protected void convertChunks(@NotNull @NotNull WritableChunk<? super Values> destination, int chunkSize, Chunk<? extends Values>[] chunks) - Specified by:
convertChunks
in classAbstractTupleSource<CharLongIntTuple>
-