K - The type of key returned by the KeySelector.IN - The type of the incoming elements.OUT - The type of elements emitted by the WindowFunction.W - The type of Window that the WindowAssigner assigns.public class EvictingWindowOperator<K,IN,OUT,W extends Window> extends WindowOperator<K,IN,OUT,W>
WindowOperator that also allows an Evictor to be used.
The Evictor is used to evict elements from panes before processing a window and after
a Trigger has fired.
WindowOperator.ContextcurrentWatermark, timestampedCollector, windowsuserFunctionchainingStrategy, output| Constructor and Description |
|---|
EvictingWindowOperator(WindowAssigner<? super IN,W> windowAssigner,
TypeSerializer<W> windowSerializer,
org.apache.flink.api.java.functions.KeySelector<IN,K> keySelector,
TypeSerializer<K> keySerializer,
WindowBufferFactory<? super IN,? extends EvictingWindowBuffer<IN>> windowBufferFactory,
WindowFunction<IN,OUT,K,W> windowFunction,
Trigger<? super IN,? super W> trigger,
Evictor<? super IN,? super W> evictor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
emitWindow(WindowOperator.Context context) |
EvictingWindowOperator<K,IN,OUT,W> |
enableSetProcessingTime(boolean setProcessingTime)
When this flag is enabled the current processing time is set as the timestamp of elements
upon arrival.
|
Evictor<? super IN,? super W> |
getEvictor() |
close, getKeySelector, getTrigger, getWindowAssigner, getWindowBufferFactory, isSetProcessingTime, open, processElement, processWatermark, restoreState, setInputType, snapshotOperatorState, triggerdispose, getUserFunction, getUserFunctionParameters, notifyOfCompletedCheckpoint, setOutputType, setupcreateKeyValueState, createKeyValueState, disableInputCopy, getChainingStrategy, getContainingTask, getExecutionConfig, getOperatorConfig, getRuntimeContext, getStateBackend, getUserCodeClassloader, isInputCopyingDisabled, registerTimer, setChainingStrategy, setKeyContext, setKeyContextElementclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdispose, getChainingStrategy, isInputCopyingDisabled, notifyOfCompletedCheckpoint, setChainingStrategy, setKeyContextElement, setuppublic EvictingWindowOperator(WindowAssigner<? super IN,W> windowAssigner, TypeSerializer<W> windowSerializer, org.apache.flink.api.java.functions.KeySelector<IN,K> keySelector, TypeSerializer<K> keySerializer, WindowBufferFactory<? super IN,? extends EvictingWindowBuffer<IN>> windowBufferFactory, WindowFunction<IN,OUT,K,W> windowFunction, Trigger<? super IN,? super W> trigger, Evictor<? super IN,? super W> evictor)
protected void emitWindow(WindowOperator.Context context) throws Exception
emitWindow in class WindowOperator<K,IN,OUT,W extends Window>Exceptionpublic EvictingWindowOperator<K,IN,OUT,W> enableSetProcessingTime(boolean setProcessingTime)
WindowOperatorTimeEvictor with processing
time semantics.enableSetProcessingTime in class WindowOperator<K,IN,OUT,W extends Window>Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.