Class SlicedByteAggregateColumnSource

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

public final class SlicedByteAggregateColumnSource extends BaseAggregateSlicedColumnSource<ByteVector,Byte>
ColumnSource implementation for aggregation result byte columns.
  • Constructor Details

    • SlicedByteAggregateColumnSource

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

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

    • get

      public ByteVector 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 ByteVector 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<ByteVector>
      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<ByteVector>
      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