Class DbDateTimeSsmSourceWrapper

java.lang.Object
com.illumon.iris.db.v2.sources.AbstractColumnSource<DbArray>
com.illumon.iris.db.v2.by.ssmcountdistinct.DbDateTimeSsmSourceWrapper
All Implemented Interfaces:
ChunkSource<Attributes.Values>, ChunkSource.WithPrev<Attributes.Values>, DefaultChunkSource<Attributes.Values>, DefaultChunkSource.WithPrev<Attributes.Values>, FillContextMaker, GetContextMaker, ColumnSource<DbArray>, ColumnSourceGetDefaults.ForObject<DbArray>, ElementSource<DbArray>, MutableColumnSource<DbArray>, MutableColumnSourceGetDefaults.ForObject<DbArray>, Releasable, TupleExporter<DbArray>, TupleSource<DbArray>, Serializable

public class DbDateTimeSsmSourceWrapper
extends AbstractColumnSource<DbArray>
implements ColumnSourceGetDefaults.ForObject<DbArray>, MutableColumnSourceGetDefaults.ForObject<DbArray>
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • 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<DbArray>
      Specified by:
      isImmutable in interface MutableColumnSource<DbArray>
      Returns:
      true if the values at a given index of the column source never change, false otherwise
    • get

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

      public DbArray<DBDateTime> 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<DbArray>
      Parameters:
      index - the location in index space to get the value from.
      Returns:
      the previous value at the index, or null.
    • startTrackingPrevValues

      public void startTrackingPrevValues()
      Description copied from interface: ColumnSource
      ColumnSource implementations that track previous values have the option to not actually start tracking previous values until this method is called. This is an option, not an obligation: some simple ColumnSource implementations (like TSingleValueSource for various T) always track previous values; other implementations (like PrevColumnSource) never do; some (like TArrayColumnSource) only start tracking once this method is called. An immutable column source can not have distinct prev values; therefore it is implemented as a no-op.
      Specified by:
      startTrackingPrevValues in interface ColumnSource<DbArray>