Class InstantSsmSourceWrapper

java.lang.Object
io.deephaven.engine.table.impl.AbstractColumnSource<ObjectVector>
io.deephaven.engine.table.impl.by.ssmcountdistinct.InstantSsmSourceWrapper
All Implemented Interfaces:
ChunkSource<Values>, ChunkSource.WithPrev<Values>, ColumnSource<ObjectVector>, ElementSource<ObjectVector>, FillContextMaker, GetContextMaker, ColumnSourceGetDefaults.ForObject<ObjectVector>, DefaultChunkSource<Values>, DefaultChunkSource.WithPrev<Values>, MutableColumnSource<ObjectVector>, MutableColumnSourceGetDefaults.ForObject<ObjectVector>, Releasable, TupleExporter<ObjectVector>, TupleSource<ObjectVector>

A SsmBackedColumnSource for Instants.
  • Constructor Details

    • InstantSsmSourceWrapper

      public InstantSsmSourceWrapper(@NotNull @NotNull LongSsmBackedSource underlying)
  • 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 row key never change.
      Specified by:
      isImmutable in interface ColumnSource<ObjectVector>
      Specified by:
      isImmutable in interface MutableColumnSource<ObjectVector>
      Returns:
      true if the values at a given row key of the column source never change, false otherwise
    • get

      public ObjectVector<Instant> 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 ElementSource<ObjectVector>
      Parameters:
      rowKey - the location in key space to get the value from.
      Returns:
      the value at the rowKey, potentially null.
    • getPrev

      public ObjectVector<Instant> 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<ObjectVector>
      Parameters:
      rowKey - the location in key space to get the value from.
      Returns:
      the previous value at the rowKey, potentially 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<ObjectVector>