public class HeapWindowsGrouping extends WindowsGrouping
WindowsGrouping, which uses a linked list to buffer
all the inputs of a keyed group belonging to the same window.
It is designed to have a capacity limit to avoid JVM OOM and reduce GC pauses.| 构造器和说明 |
|---|
HeapWindowsGrouping(int maxSizeLimit,
long windowSize,
long slideSize,
int timeIndex,
boolean isDate) |
HeapWindowsGrouping(int maxSizeLimit,
long offset,
long windowSize,
long slideSize,
int timeIndex,
boolean isDate) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addIntoBuffer(org.apache.flink.table.data.binary.BinaryRowData input) |
void |
close() |
protected RowIterator<org.apache.flink.table.data.binary.BinaryRowData> |
newBufferIterator(int startIndex) |
protected void |
onBufferEvict(int limitIndex) |
protected void |
resetBuffer() |
addInputToBuffer, advanceWatermarkToTriggerAllWindows, buildTriggerWindowElementsIterator, getTriggerWindow, hasTriggerWindow, resetpublic HeapWindowsGrouping(int maxSizeLimit,
long windowSize,
long slideSize,
int timeIndex,
boolean isDate)
public HeapWindowsGrouping(int maxSizeLimit,
long offset,
long windowSize,
long slideSize,
int timeIndex,
boolean isDate)
protected void resetBuffer()
resetBuffer 在类中 WindowsGroupingprotected void onBufferEvict(int limitIndex)
onBufferEvict 在类中 WindowsGroupingprotected void addIntoBuffer(org.apache.flink.table.data.binary.BinaryRowData input)
throws IOException
addIntoBuffer 在类中 WindowsGroupingIOExceptionprotected RowIterator<org.apache.flink.table.data.binary.BinaryRowData> newBufferIterator(int startIndex)
newBufferIterator 在类中 WindowsGroupingpublic void close()
throws IOException
IOExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.