Class CharEMOperator.Context

All Implemented Interfaces:
SafeCloseable, AutoCloseable
Enclosing class:
CharEMOperator

protected class CharEMOperator.Context extends BasePrimitiveEMOperator.Context
  • Field Details

  • Constructor Details

    • Context

      protected Context(int affectedChunkSize, int influencerChunkSize)
  • Method Details

    • setValueChunks

      public void setValueChunks(@NotNull @NotNull Chunk<? extends Values>[] valueChunks)
      Overrides:
      setValueChunks in class BaseDoubleUpdateByOperator.Context
    • accumulateCumulative

      public void accumulateCumulative(@NotNull @NotNull RowSequence inputKeys, Chunk<? extends Values>[] valueChunkArr, LongChunk<? extends Values> tsChunk, int len)
      Description copied from class: UpdateByOperator.Context
      For cumulative operators only, this method will be called to pass the input chunk data to the operator and produce the output data values.
      Overrides:
      accumulateCumulative in class BaseDoubleUpdateByOperator.Context
      Parameters:
      inputKeys - the keys for the input data rows (also matches the output keys)
      valueChunkArr - the input data chunks needed by the operator for internal calculations
      tsChunk - the timestamp chunk for the input data (if applicable)
      len - the number of items in the input data chunks
    • isValueValid

      public boolean isValueValid(long atKey)
      Overrides:
      isValueValid in class UpdateByOperator.Context
    • push

      public void push(int pos, int count)
      Description copied from class: UpdateByOperator.Context
      Add values to the operators current data set
      Specified by:
      push in class UpdateByOperator.Context
      Parameters:
      pos - the index in the associated chunk where this value can be found. Depending on the usage, might be a values chunk (for cumulative operators) or an influencer values chunk (for windowed). It is the task of the operator to pull the data from the chunk and use it properly
      count - the number of items to push from the chunk