Class ImmutableDoubleArraySource

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

public class ImmutableDoubleArraySource extends AbstractColumnSource<Double> implements ImmutableColumnSourceGetDefaults.ForDouble
Simple array source for Immutable Double.

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

    • ImmutableDoubleArraySource

      public ImmutableDoubleArraySource(double[] source)
  • Method Details

    • getDouble

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

      public Double 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.ForDouble
      Specified by:
      get in interface ElementSource<Double>
      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<Double>
      Specified by:
      isImmutable in interface ImmutableColumnSource<Double>
      Returns:
      true if the values at a given index of the column source never change, false otherwise