Class FloatCharacterShortColumnTupleSource
- All Implemented Interfaces:
ChunkSource<Values>,ChunkSource.WithPrev<Values>,FillContextMaker,GetContextMaker,DefaultChunkSource<Values>,DefaultChunkSource.WithPrev<Values>,TupleExporter<FloatCharShortTuple>,TupleSource<FloatCharShortTuple>
TupleSource that produces key column values from ColumnSource types Float, Character, and Short.
-
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
FieldsModifier and TypeFieldDescriptionstatic final ThreeColumnTupleSourceFactory<FloatCharShortTuple,Float, Character, Short> ThreeColumnTupleSourceFactoryinstance to create instances ofFloatCharacterShortColumnTupleSource.Fields 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_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionFloatCharacterShortColumnTupleSource(@NotNull ColumnSource<Float> columnSource1, @NotNull ColumnSource<Character> columnSource2, @NotNull ColumnSource<Short> columnSource3) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconvertChunks(@NotNull WritableChunk<? super Values> destination, int chunkSize, Chunk<? extends Values>[] chunks) final FloatCharShortTuplecreatePreviousTuple(long rowKey) Create a tuple for previous key column values at the supplied row key.final FloatCharShortTuplecreateTuple(long rowKey) Create a tuple for key column values at the supplied row key.final FloatCharShortTuplecreateTupleFromReinterpretedValues(@NotNull Object... values) Create a tuple for the supplied reinterpreted values.final FloatCharShortTuplecreateTupleFromValues(@NotNull Object... values) Create a tuple for the supplied (boxed) values.final voidexportAllReinterpretedTo(Object @NotNull [] dest, @NotNull FloatCharShortTuple tuple) Fill anObject[]with all element from the tuple, boxing as necessary.final voidexportAllReinterpretedTo(Object @NotNull [] dest, @NotNull FloatCharShortTuple 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 voidexportAllTo(Object @NotNull [] dest, @NotNull FloatCharShortTuple tuple) Fill anObject[]with all elements from the tuple, boxing as necessary.final voidexportAllTo(Object @NotNull [] dest, @NotNull FloatCharShortTuple 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 ObjectexportElement(@NotNull FloatCharShortTuple tuple, int elementIndex) Export a single element (identified byelementIndex) from the tuple, boxing as necessary.final <ELEMENT_TYPE>
voidexportElement(@NotNull FloatCharShortTuple 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 ObjectexportElementReinterpreted(@NotNull FloatCharShortTuple tuple, int elementIndex) Export a single element (identified byelementIndex) from the tuple, boxing as necessary.final intGet the number of elements in tuples supported by this TupleExporter.Methods inherited from class io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource
fillChunk, fillPrevChunk, getChunkType, makeFillContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.engine.table.impl.DefaultChunkSource
getChunk, getChunk, getChunkByFilling, makeGetContextMethods inherited from interface io.deephaven.engine.table.impl.DefaultChunkSource.WithPrev
getPrevChunk, getPrevChunk, getPrevChunkByFilling, getPrevSourceMethods inherited from interface io.deephaven.engine.table.FillContextMaker
makeFillContextMethods inherited from interface io.deephaven.engine.table.GetContextMaker
makeGetContext
-
Field Details
-
FACTORY
public static final ThreeColumnTupleSourceFactory<FloatCharShortTuple,Float, FACTORYCharacter, Short> ThreeColumnTupleSourceFactoryinstance to create instances ofFloatCharacterShortColumnTupleSource.
-
-
Constructor Details
-
FloatCharacterShortColumnTupleSource
public FloatCharacterShortColumnTupleSource(@NotNull @NotNull ColumnSource<Float> columnSource1, @NotNull @NotNull ColumnSource<Character> columnSource2, @NotNull @NotNull ColumnSource<Short> columnSource3)
-
-
Method Details
-
createTuple
Description copied from interface:TupleSourceCreate 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:TupleSourceCreate 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:TupleSourceCreate a tuple for the supplied (boxed) values.- Parameters:
values- The values- Returns:
- The resulting tuple
-
createTupleFromReinterpretedValues
public final FloatCharShortTuple createTupleFromReinterpretedValues(@NotNull @NotNull Object... values) Description copied from interface:TupleSourceCreate a tuple for the supplied reinterpreted values.- Parameters:
values- The values- Returns:
- The resulting tuple
-
tupleLength
public final int tupleLength()Description copied from interface:TupleExporterGet 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 FloatCharShortTuple tuple, int elementIndex, @NotNull @NotNull WritableColumnSource<ELEMENT_TYPE> writableSource, long destinationRowKey) Description copied from interface:TupleExporterExport 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:TupleExporterExport 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:TupleExporterFill 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 FloatCharShortTuple tuple, int @NotNull [] map) Description copied from interface:TupleExporterFill 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 FloatCharShortTuple tuple, int elementIndex) Description copied from interface:TupleExporterExport 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 FloatCharShortTuple tuple) Description copied from interface:TupleExporterFill 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 FloatCharShortTuple tuple, int @NotNull [] map) Description copied from interface:TupleExporterFill 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:
convertChunksin classAbstractTupleSource<FloatCharShortTuple>
-