Class SlicedDoubleAggregateColumnSource

All Implemented Interfaces:
ChunkSource<Values>, ChunkSource.WithPrev<Values>, ColumnSource<DoubleVector>, ElementSource<DoubleVector>, FillContextMaker, GetContextMaker, ColumnSourceGetDefaults.ForObject<DoubleVector>, DefaultChunkSource<Values>, DefaultChunkSource.WithPrev<Values>, MutableColumnSource<DoubleVector>, MutableColumnSourceGetDefaults.ForObject<DoubleVector>, AggregateColumnSource<DoubleVector,Double>, UngroupableColumnSource, Releasable, TupleExporter<DoubleVector>, TupleSource<DoubleVector>

public final class SlicedDoubleAggregateColumnSource extends BaseAggregateSlicedColumnSource<DoubleVector,Double>
ColumnSource implementation for aggregation result double columns.
  • Constructor Details

    • SlicedDoubleAggregateColumnSource

      public SlicedDoubleAggregateColumnSource(@NotNull @NotNull ColumnSource<Double> aggregatedSource, @NotNull @NotNull ColumnSource<? extends RowSet> groupRowSetSource, @NotNull @NotNull ColumnSource<Long> startSource, @NotNull @NotNull ColumnSource<Long> endSource)
    • SlicedDoubleAggregateColumnSource

      public SlicedDoubleAggregateColumnSource(@NotNull @NotNull ColumnSource<Double> aggregatedSource, @NotNull @NotNull ColumnSource<? extends RowSet> groupRowSetSource, long revTicks, long fwdTicks)
  • Method Details

    • get

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

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

      public void fillChunk(@NotNull @NotNull ChunkSource.FillContext context, @NotNull @NotNull WritableChunk<? super Values> destination, @NotNull @NotNull RowSequence rowSequence)
      Description copied from interface: ChunkSource
      Populates the given destination chunk with data corresponding to the keys from the given RowSequence.
      Specified by:
      fillChunk in interface ChunkSource<Values>
      Overrides:
      fillChunk in class AbstractColumnSource<DoubleVector>
      Parameters:
      context - A context containing all mutable/state related data used in retrieving the Chunk.
      destination - The chunk to be populated according to rowSequence. No assumptions shall be made about the size of the chunk shall be made. The chunk will be populated from position [0,rowSequence.size()).
      rowSequence - An RowSequence representing the keys to be fetched
    • fillPrevChunk

      public void fillPrevChunk(@NotNull @NotNull ChunkSource.FillContext context, @NotNull @NotNull WritableChunk<? super Values> destination, @NotNull @NotNull RowSequence rowSequence)
      Description copied from interface: ChunkSource.WithPrev
      Populates the given destination chunk with data corresponding to the keys from the given RowSequence.
      Specified by:
      fillPrevChunk in interface ChunkSource.WithPrev<Values>
      Overrides:
      fillPrevChunk in class AbstractColumnSource<DoubleVector>
      Parameters:
      context - A context containing all mutable/state related data used in retrieving the Chunk.
      destination - The chunk to be populated according to rowSequence. No assumptions shall be made about the size of the chunk shall be made. The chunk will be populated from position [0,rowSequence.size()).
      rowSequence - An RowSequence representing the keys to be fetched