@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(Collector<Result> out,
TimeWindow window,
AbstractStreamOperator<Result> operator) |
int |
getNumPanes() |
void |
readFromInput(DataInputView input,
TypeSerializer<Key> keySerializer,
TypeSerializer<Aggregate> aggSerializer) |
void |
slidePanes(int panesToKeep) |
protected void |
traverseAllPanes(KeyMap.TraversalEvaluator<Key,Aggregate> traversal,
long traversalPass) |
void |
truncatePanes(int numToRetain) |
void |
writeToOutput(DataOutputView output,
TypeSerializer<Key> keySerializer,
TypeSerializer<Aggregate> aggSerializer) |
protected final ArrayDeque<KeyMap<Key,Aggregate>> previousPanes
public abstract void addElementToLatestPane(Type element) throws Exception
Exception
public abstract void evaluateWindow(Collector<Result> out, TimeWindow window, AbstractStreamOperator<Result> operator) throws Exception
Exception
public 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
Exception
public void writeToOutput(DataOutputView output, TypeSerializer<Key> keySerializer, TypeSerializer<Aggregate> aggSerializer) throws IOException
IOException
public void readFromInput(DataInputView input, TypeSerializer<Key> keySerializer, TypeSerializer<Aggregate> aggSerializer) throws IOException
IOException
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.