@Internal public abstract class AbstractKeyedTimePanes<Type,Key,Aggregate,Result> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected KeyMap<Key,Aggregate> |
latestPane
The latest time pane
|
protected ArrayDeque<KeyMap<Key,Aggregate>> |
previousPanes
The previous time panes, ordered by time (early to late)
|
| Constructor and Description |
|---|
AbstractKeyedTimePanes() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addElementToLatestPane(Type element) |
void |
dispose() |
abstract void |
evaluateWindow(org.apache.flink.util.Collector<Result> out,
TimeWindow window,
AbstractStreamOperator<Result> operator) |
int |
getNumPanes() |
void |
readFromInput(org.apache.flink.core.memory.DataInputView input,
org.apache.flink.api.common.typeutils.TypeSerializer<Key> keySerializer,
org.apache.flink.api.common.typeutils.TypeSerializer<Aggregate> aggSerializer) |
void |
slidePanes(int panesToKeep) |
protected void |
traverseAllPanes(KeyMap.TraversalEvaluator<Key,Aggregate> traversal,
long traversalPass) |
void |
truncatePanes(int numToRetain) |
void |
writeToOutput(org.apache.flink.core.memory.DataOutputView output,
org.apache.flink.api.common.typeutils.TypeSerializer<Key> keySerializer,
org.apache.flink.api.common.typeutils.TypeSerializer<Aggregate> aggSerializer) |
protected final ArrayDeque<KeyMap<Key,Aggregate>> previousPanes
public abstract void addElementToLatestPane(Type element) throws Exception
Exceptionpublic abstract void evaluateWindow(org.apache.flink.util.Collector<Result> out, TimeWindow window, AbstractStreamOperator<Result> operator) throws Exception
Exceptionpublic void dispose()
public int getNumPanes()
public void slidePanes(int panesToKeep)
public void truncatePanes(int numToRetain)
protected void traverseAllPanes(KeyMap.TraversalEvaluator<Key,Aggregate> traversal, long traversalPass) throws Exception
Exceptionpublic void writeToOutput(org.apache.flink.core.memory.DataOutputView output,
org.apache.flink.api.common.typeutils.TypeSerializer<Key> keySerializer,
org.apache.flink.api.common.typeutils.TypeSerializer<Aggregate> aggSerializer)
throws IOException
IOExceptionpublic void readFromInput(org.apache.flink.core.memory.DataInputView input,
org.apache.flink.api.common.typeutils.TypeSerializer<Key> keySerializer,
org.apache.flink.api.common.typeutils.TypeSerializer<Aggregate> aggSerializer)
throws IOException
IOExceptionCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.