Interface WindowAccumulator
public interface WindowAccumulator
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddInput(WindowIndex index, int startPosition, int endPosition) Add the specified positions to the accumulator.copy()longvoidoutput(BlockBuilder blockBuilder) Get the value of the accumulator.default booleanremoveInput(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
WindowAccumulator copy()- Returns:
- a copy of the accumulator
-
addInput
Add the specified positions to the accumulator.- Parameters:
startPosition- the first position to addendPosition- the last position to add (inclusive)
-
removeInput
Remove the specified positions from the accumulator.- Parameters:
startPosition- the first position to removeendPosition- the last position to remove (inclusive)- Returns:
- false if input could not be removed and accumulator should be recreated
-
output
Get the value of the accumulator.
-