Class ShortLongColumnTupleSource

java.lang.Object
com.illumon.iris.db.v2.tuples.AbstractTupleSource<ShortLongTuple>
com.illumon.iris.db.v2.tuples.generated.ShortLongColumnTupleSource
All Implemented Interfaces:
ChunkSource<Attributes.Values>, ChunkSource.WithPrev<Attributes.Values>, DefaultChunkSource<Attributes.Values>, DefaultChunkSource.WithPrev<Attributes.Values>, FillContextMaker, GetContextMaker, TupleExporter<ShortLongTuple>, TupleSource<ShortLongTuple>

public class ShortLongColumnTupleSource extends AbstractTupleSource<ShortLongTuple>

TupleSource that produces key column values from ColumnSource types Short and Long.

Generated by TupleSourceCodeGenerator.

  • Field Details

  • Constructor Details

  • Method Details

    • createTuple

      public final ShortLongTuple createTuple(long indexKey)
      Description copied from interface: TupleSource
      Create a tuple for key column values at the supplied index key.
      Parameters:
      indexKey - The index key
      Returns:
      The resulting tuple
    • createPreviousTuple

      public final ShortLongTuple createPreviousTuple(long indexKey)
      Description copied from interface: TupleSource
      Create a tuple for previous key column values at the supplied index key.
      Parameters:
      indexKey - The index key
      Returns:
      The resulting tuple
    • createTupleFromValues

      public final ShortLongTuple createTupleFromValues(@NotNull Object... values)
      Description copied from interface: TupleSource
      Create a tuple for the supplied (boxed) values.
      Parameters:
      values - The values
      Returns:
      The resulting tuple
    • createTupleFromReinterpretedValues

      public final ShortLongTuple createTupleFromReinterpretedValues(@NotNull Object... values)
      Description copied from interface: TupleSource
      Create a tuple for the supplied reinterpreted values (e.g., those that come from the getColumnSources after a reinterpretation by TupleSourceFactory).
      Parameters:
      values - The values
      Returns:
      The resulting tuple
    • exportElement

      public final <ELEMENT_TYPE> void exportElement(@NotNull ShortLongTuple tuple, int elementIndex, @NotNull WritableSource<ELEMENT_TYPE> writableSource, long destinationIndexKey)
      Description copied from interface: TupleExporter
      Export 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 from
      elementIndex - The element index to export
      writableSource - The destination
      destinationIndexKey - The destination index key
    • exportToExternalKey

      public final Object exportToExternalKey(@NotNull ShortLongTuple tuple)
      Description copied from interface: TupleExporter

      Export this tuple's element list as a key suitable for the TableMaps resulting from Table.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

      public final Object exportElement(@NotNull ShortLongTuple tuple, int elementIndex)
      Description copied from interface: TupleExporter
      Export a single element from the tuple, identified by its element index, to an Object

      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 from
      elementIndex - The element index to export
      Returns:
      a single value from the tuple
    • exportElementReinterpreted

      public final Object exportElementReinterpreted(@NotNull ShortLongTuple tuple, int elementIndex)
      Description copied from interface: TupleExporter
      Export 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 from
      elementIndex - The element index to export
      Returns:
      a single value from the tuple, possibly as a primitive
    • getNativeType

      public Class<ShortLongTuple> getNativeType()
    • convertChunks

      protected void convertChunks(@NotNull WritableChunk<? super Attributes.Values> destination, int chunkSize, Chunk<Attributes.Values>[] chunks)
      Specified by:
      convertChunks in class AbstractTupleSource<ShortLongTuple>