Class UngroupedIntVectorColumnSource

All Implemented Interfaces:
ChunkSource<Values>, ChunkSource.WithPrev<Values>, ColumnSource<Integer>, ElementSource<Integer>, FillContextMaker, GetContextMaker, ColumnSourceGetDefaults.ForInt, DefaultChunkSource<Values>, DefaultChunkSource.WithPrev<Values>, MutableColumnSource<Integer>, MutableColumnSourceGetDefaults.ForInt, Releasable, TupleExporter<Integer>, TupleSource<Integer>

public class UngroupedIntVectorColumnSource extends UngroupedColumnSource<Integer> implements MutableColumnSourceGetDefaults.ForInt
  • Constructor Details

    • UngroupedIntVectorColumnSource

      public UngroupedIntVectorColumnSource(ColumnSource<IntVector> innerSource)
  • Method Details

    • getComponentType

      public Class<?> getComponentType()
      Specified by:
      getComponentType in interface ColumnSource<Integer>
      Overrides:
      getComponentType in class AbstractColumnSource<Integer>
    • get

      public Integer get(long rowKey)
      Description copied from interface: ElementSource
      Get the value from the source. This may return boxed values for basic types. RowKeys that are not present are undefined.
      Specified by:
      get in interface ColumnSourceGetDefaults.ForInt
      Specified by:
      get in interface ElementSource<Integer>
      Parameters:
      rowKey - the location in key space to get the value from.
      Returns:
      the value at the rowKey, potentially null.
    • getInt

      public int getInt(long rowKey)
      Description copied from interface: ElementSource
      Get the value at the rowKey as an int. RowKeys that are not present are undefined.
      Specified by:
      getInt in interface ElementSource<Integer>
      Parameters:
      rowKey - the location in key space to get the value from.
      Returns:
      the int at the rowKey, null values are represented by QueryConstants.NULL_INT
    • getPrev

      public Integer getPrev(long rowKey)
      Description copied from interface: ElementSource
      Get the previous value at the rowKey. Previous values are used during an UG update cycle to process changes in data. During normal operation previous values will be identical to current values. RowKeys that were not present are undefined.
      Specified by:
      getPrev in interface ElementSource<Integer>
      Specified by:
      getPrev in interface MutableColumnSourceGetDefaults.ForInt
      Parameters:
      rowKey - the location in key space to get the value from.
      Returns:
      the previous value at the rowKey, potentially null.
    • getPrevInt

      public int getPrevInt(long rowKey)
      Description copied from interface: ElementSource
      Get the previous value at the rowKey as an int. See ElementSource.getPrev(long) for more details. RowKeys that were not present are undefined.
      Specified by:
      getPrevInt in interface ElementSource<Integer>
      Parameters:
      rowKey - the location in key space to get the previous value from.
      Returns:
      the previous int at the rowKey, null values are represented by QueryConstants.NULL_INT
    • isImmutable

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

      public boolean isStateless()
      Description copied from interface: ColumnSource
      Most column sources will return the same value for a given row without respect to the order that the rows are read. Those columns sources are considered "stateless" and should return true. Some column sources, however may be dependent on evaluation order. For example, a formula that updates a Map must be evaluated from the first row to the last row. A column source that has the potential to depend on the order of evaluation must return false.
      Specified by:
      isStateless in interface ColumnSource<Integer>
      Returns:
      true if this is a stateless column source