Class UngroupedDbArrayColumnSource<T>

All Implemented Interfaces:
ChunkSource<Attributes.Values>, ChunkSource.WithPrev<Attributes.Values>, DefaultChunkSource<Attributes.Values>, DefaultChunkSource.WithPrev<Attributes.Values>, FillContextMaker, GetContextMaker, ColumnSource<T>, ColumnSourceGetDefaults.ForObject<T>, ElementSource<T>, MutableColumnSource<T>, MutableColumnSourceGetDefaults.ForObject<T>, Releasable, TupleExporter<T>, TupleSource<T>, Serializable
Direct Known Subclasses:
UngroupedBoxedByteDbArrayColumnSource, UngroupedBoxedCharDbArrayColumnSource, UngroupedBoxedDoubleDbArrayColumnSource, UngroupedBoxedFloatDbArrayColumnSource, UngroupedBoxedIntDbArrayColumnSource, UngroupedBoxedLongDbArrayColumnSource, UngroupedBoxedShortDbArrayColumnSource

public class UngroupedDbArrayColumnSource<T> extends UngroupedColumnSource<T> implements MutableColumnSourceGetDefaults.ForObject<T>
See Also:
  • Constructor Details

    • UngroupedDbArrayColumnSource

      public UngroupedDbArrayColumnSource(ColumnSource<DbArray<T>> innerSource)
  • Method Details

    • getComponentType

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

      public T 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<T>
      Parameters:
      index - the location in index space to get the value from.
      Returns:
      the value at the index, potentially null.
    • getPrev

      public T getPrev(long index)
      Description copied from interface: ElementSource
      Get the previous value at the index. Previous values are used during an LTM update cycle to process changes in data. During normal operation previous values will be identical to current values.
      Specified by:
      getPrev in interface ElementSource<T>
      Parameters:
      index - the location in index space to get the value from.
      Returns:
      the previous value at the index, or null.
    • getBoolean

      public Boolean getBoolean(long index)
      Description copied from interface: ElementSource
      Get the value at the index as a Boolean.
      Specified by:
      getBoolean in interface ColumnSourceGetDefaults.ForObject<T>
      Specified by:
      getBoolean in interface ElementSource<T>
      Parameters:
      index - the location in index space to get the value from.
      Returns:
      the boolean at the index, potentially null.
    • getPrevBoolean

      public Boolean getPrevBoolean(long index)
      Description copied from interface: ElementSource
      Get the previous value at the index as a Boolean. See ElementSource.getPrev(long) for more details.
      Specified by:
      getPrevBoolean in interface ElementSource<T>
      Specified by:
      getPrevBoolean in interface MutableColumnSourceGetDefaults.ForObject<T>
      Parameters:
      index - the location in index space to get the previous value from.
      Returns:
      the previous boolean at the index, or 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<T>
      Specified by:
      isImmutable in interface MutableColumnSource<T>
      Returns:
      true if the values at a given index of the column source never change, false otherwise