Interface WindowAccumulator


public interface WindowAccumulator
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addInput(WindowIndex index, int startPosition, int endPosition)
    Add the specified positions to the accumulator.
     
    long
     
    void
    output(BlockBuilder blockBuilder)
    Get the value of the accumulator.
    default boolean
    removeInput(WindowIndex index, int startPosition, int endPosition)
    Remove the specified positions from the accumulator.
  • Method Details

    • getEstimatedSize

      long getEstimatedSize()
      Returns:
      the estimated size of the accumulator in bytes
    • copy

      Returns:
      a copy of the accumulator
    • addInput

      void addInput(WindowIndex index, int startPosition, int endPosition)
      Add the specified positions to the accumulator.
      Parameters:
      startPosition - the first position to add
      endPosition - the last position to add (inclusive)
    • removeInput

      default boolean removeInput(WindowIndex index, int startPosition, int endPosition)
      Remove the specified positions from the accumulator.
      Parameters:
      startPosition - the first position to remove
      endPosition - the last position to remove (inclusive)
      Returns:
      false if input could not be removed and accumulator should be recreated
    • output

      void output(BlockBuilder blockBuilder)
      Get the value of the accumulator.