Class IntegerCharacterByteColumnTupleSource
- All Implemented Interfaces:
ChunkSource<Attributes.Values>,ChunkSource.WithPrev<Attributes.Values>,DefaultChunkSource<Attributes.Values>,DefaultChunkSource.WithPrev<Attributes.Values>,FillContextMaker,GetContextMaker,TupleExporter<IntCharByteTuple>,TupleSource<IntCharByteTuple>
TupleSource that produces key column values from ColumnSource types Integer, Character, and Byte.
Generated by TupleSourceCodeGenerator.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.sources.chunk.ChunkSource
ChunkSource.FillContext, ChunkSource.GetContext, ChunkSource.WithPrev<ATTR extends Attributes.Any>Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.sources.chunk.DefaultChunkSource
DefaultChunkSource.SupportsContiguousGet<ATTR extends Attributes.Any>, DefaultChunkSource.WithPrev<ATTR extends Attributes.Any> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ThreeColumnTupleSourceFactory<IntCharByteTuple,Integer, Character, Byte> ThreeColumnTupleSourceFactoryinstance to create instances ofIntegerCharacterByteColumnTupleSource.Fields inherited from interface com.illumon.iris.db.v2.sources.chunk.ChunkSource
DEFAULT_FILL_INSTANCE, ZERO_LENGTH_CHUNK_SOURCE_ARRAYFields inherited from interface com.illumon.iris.db.v2.sources.chunk.ChunkSource.WithPrev
ZERO_LENGTH_CHUNK_SOURCE_WITH_PREV_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionIntegerCharacterByteColumnTupleSource(ColumnSource<Integer> columnSource1, ColumnSource<Character> columnSource2, ColumnSource<Byte> columnSource3) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconvertChunks(WritableChunk<? super Attributes.Values> destination, int chunkSize, Chunk<Attributes.Values>[] chunks) final IntCharByteTuplecreatePreviousTuple(long indexKey) Create a tuple for previous key column values at the supplied index key.final IntCharByteTuplecreateTuple(long indexKey) Create a tuple for key column values at the supplied index key.final IntCharByteTuplecreateTupleFromReinterpretedValues(Object... values) Create a tuple for the supplied reinterpreted values (e.g., those that come from the getColumnSources after a reinterpretation byTupleSourceFactory).final IntCharByteTuplecreateTupleFromValues(Object... values) Create a tuple for the supplied (boxed) values.final ObjectexportElement(IntCharByteTuple tuple, int elementIndex) Export a single element from the tuple, identified by its element index, to an Objectfinal <ELEMENT_TYPE>
voidexportElement(IntCharByteTuple tuple, int elementIndex, WritableSource<ELEMENT_TYPE> writableSource, long destinationIndexKey) Export a single element from the tuple, identified by its element index, to the destination index key of the supplied writable source.final ObjectexportElementReinterpreted(IntCharByteTuple tuple, int elementIndex) Export a single element from the tuple, identified by its element index, to an Object.final ObjectExport this tuple's element list as a key suitable for theTableMaps resulting fromTable.byExternal(boolean, java.lang.String...).Methods inherited from class com.illumon.iris.db.v2.tuples.AbstractTupleSource
fillChunk, fillPrevChunk, getColumnSources, makeFillContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.db.v2.sources.chunk.ChunkSource
getChunkTypeMethods inherited from interface com.illumon.iris.db.v2.sources.chunk.DefaultChunkSource
getChunk, getChunk, getChunkByFilling, makeGetContextMethods inherited from interface com.illumon.iris.db.v2.sources.chunk.DefaultChunkSource.WithPrev
getPrevChunk, getPrevChunk, getPrevChunkByFilling, getPrevSourceMethods inherited from interface com.illumon.iris.db.v2.sources.chunk.FillContextMaker
makeFillContextMethods inherited from interface com.illumon.iris.db.v2.sources.chunk.GetContextMaker
makeGetContext
-
Field Details
-
FACTORY
ThreeColumnTupleSourceFactoryinstance to create instances ofIntegerCharacterByteColumnTupleSource.
-
-
Constructor Details
-
IntegerCharacterByteColumnTupleSource
public IntegerCharacterByteColumnTupleSource(@NotNull ColumnSource<Integer> columnSource1, @NotNull ColumnSource<Character> columnSource2, @NotNull ColumnSource<Byte> columnSource3)
-
-
Method Details
-
createTuple
Description copied from interface:TupleSourceCreate a tuple for key column values at the supplied index key.- Parameters:
indexKey- The index key- Returns:
- The resulting tuple
-
createPreviousTuple
Description copied from interface:TupleSourceCreate a tuple for previous key column values at the supplied index key.- Parameters:
indexKey- The index 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
Description copied from interface:TupleSourceCreate a tuple for the supplied reinterpreted values (e.g., those that come from the getColumnSources after a reinterpretation byTupleSourceFactory).- Parameters:
values- The values- Returns:
- The resulting tuple
-
exportElement
public final <ELEMENT_TYPE> void exportElement(@NotNull IntCharByteTuple tuple, int elementIndex, @NotNull WritableSource<ELEMENT_TYPE> writableSource, long destinationIndexKey) Description copied from interface:TupleExporterExport a single element from the tuple, identified by its element index, to the destination index 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.
- Type Parameters:
ELEMENT_TYPE- the type of the element to be exported- Parameters:
tuple- The tuple to export an element fromelementIndex- The element index to exportwritableSource- The destinationdestinationIndexKey- The destination index key
-
exportToExternalKey
Description copied from interface:TupleExporterExport this tuple's element list as a key suitable for the
TableMaps resulting fromTable.byExternal(boolean, java.lang.String...).For the empty tuple this is a unsupported.
For singles, this is the (boxed) sole element itself.
For doubles and longer, this is a newly-allocated "
SmartKey".- Parameters:
tuple- The tuple to export all elements from- Returns:
- The new smart key
-
exportElement
Description copied from interface:TupleExporterExport a single element from the tuple, identified by its element index, to an ObjectFor 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 export- Returns:
- a single value from the tuple
-
exportElementReinterpreted
Description copied from interface:TupleExporterExport a single element from the tuple, identified by its element index, to an Object. If the tuple has been internally reinterpreted, return the reinterpreted value.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 export- Returns:
- a single value from the tuple, possibly as a primitive
-
getNativeType
-
convertChunks
protected void convertChunks(@NotNull WritableChunk<? super Attributes.Values> destination, int chunkSize, Chunk<Attributes.Values>[] chunks) - Specified by:
convertChunksin classAbstractTupleSource<IntCharByteTuple>
-