Class ImmutableCharArraySource

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

public class ImmutableCharArraySource extends AbstractColumnSource<Character> implements ImmutableColumnSourceGetDefaults.ForChar
Simple array source for Immutable Char.

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

    • ImmutableCharArraySource

      public ImmutableCharArraySource(char[] source)
  • Method Details

    • getChar

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

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