Class ImmutableLongArraySource

java.lang.Object
com.illumon.iris.db.v2.sources.AbstractColumnSource<Long>
com.illumon.iris.db.v2.sources.immutable.ImmutableLongArraySource
All Implemented Interfaces:
ChunkSource<Attributes.Values>, ChunkSource.WithPrev<Attributes.Values>, DefaultChunkSource<Attributes.Values>, DefaultChunkSource.WithPrev<Attributes.Values>, FillContextMaker, GetContextMaker, ColumnSource<Long>, ColumnSourceGetDefaults.ForLong, ColumnSourceGetDefaults.LongBacked<Long>, ElementSource<Long>, ImmutableColumnSource<Long>, ImmutableColumnSourceGetDefaults.ForLong, Releasable, TupleExporter<Long>, TupleSource<Long>, Serializable

public class ImmutableLongArraySource extends AbstractColumnSource<Long> implements ImmutableColumnSourceGetDefaults.ForLong
Simple array source for Immutable Long.

The ImmutableC-harArraySource is replicated to all other types with com.illumon.iris.db.v2.sources.Replicate. (C-har is deliberately spelled that way in order to prevent Replicate from altering this very comment).

See Also:
  • Constructor Details

    • ImmutableLongArraySource

      public ImmutableLongArraySource(long[] source)
  • Method Details

    • getLong

      public long getLong(long index)
      Description copied from interface: ElementSource
      Get the value at the index as a long.
      Specified by:
      getLong in interface ElementSource<Long>
      Parameters:
      index - the location in index space to get the value from.
      Returns:
      the long at the index, null values are represented by QueryConstants.NULL_LONG
    • get

      public Long get(long index)
      Description copied from interface: ElementSource
      Get the value from the source. This may return boxed values for basic types.
      Specified by:
      get in interface ColumnSourceGetDefaults.ForLong
      Specified by:
      get in interface ElementSource<Long>
      Parameters:
      index - the location in index space to get the value from.
      Returns:
      the value at the index, potentially null.
    • isImmutable

      public boolean isImmutable()
      Description copied from interface: ColumnSource
      Determine if this column source is immutable, meaning that the values at a given index key never change.
      Specified by:
      isImmutable in interface ColumnSource<Long>
      Specified by:
      isImmutable in interface ImmutableColumnSource<Long>
      Returns:
      true if the values at a given index of the column source never change, false otherwise