Class SingleValueObjectColumnSource<DATA_TYPE>

java.lang.Object
io.deephaven.engine.table.impl.AbstractColumnSource<DATA_TYPE>
io.deephaven.engine.table.impl.sources.SingleValueObjectColumnSource<DATA_TYPE>
All Implemented Interfaces:
ChunkSource<Values>, ChunkSource.WithPrev<Values>, ColumnSource<DATA_TYPE>, ElementSource<DATA_TYPE>, FillContextMaker, GetContextMaker, ColumnSourceGetDefaults.ForObject<DATA_TYPE>, DefaultChunkSource<Values>, DefaultChunkSource.WithPrev<Values>, ImmutableColumnSource<DATA_TYPE>, ImmutableColumnSourceGetDefaults.ForObject<DATA_TYPE>, Releasable, TupleExporter<DATA_TYPE>, TupleSource<DATA_TYPE>

public class SingleValueObjectColumnSource<DATA_TYPE> extends AbstractColumnSource<DATA_TYPE> implements ImmutableColumnSourceGetDefaults.ForObject<DATA_TYPE>
ColumnSource implementation for columns of a single unique value.
  • Constructor Details

    • SingleValueObjectColumnSource

      public SingleValueObjectColumnSource(DATA_TYPE value)
  • Method Details

    • get

      public DATA_TYPE 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<DATA_TYPE>
      Parameters:
      rowKey - the location in key space to get the value from.
      Returns:
      the 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<DATA_TYPE>