Class ImmutableByteArraySource

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

public class ImmutableByteArraySource extends AbstractColumnSource<Byte> implements ImmutableColumnSourceGetDefaults.ForByte
Simple array source for Immutable Byte.

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

    • ImmutableByteArraySource

      public ImmutableByteArraySource(byte[] source)
  • Method Details

    • getByte

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

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