Class ImmutableBooleanArraySource

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

public class ImmutableBooleanArraySource extends AbstractColumnSource<Boolean> implements ImmutableColumnSourceGetDefaults.ForBoolean
See Also:
  • Constructor Details

    • ImmutableBooleanArraySource

      public ImmutableBooleanArraySource(boolean[] source)
    • ImmutableBooleanArraySource

      public ImmutableBooleanArraySource(Boolean[] source)
    • ImmutableBooleanArraySource

      public ImmutableBooleanArraySource(byte[] source)
  • Method Details

    • get

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