public class GroupedStreamDiscretizer<IN> extends StreamDiscretizer<IN>
StreamWindow that will be further
transformed in the next stages. To allow pre-aggregations supply an
appropriate WindowBufferStreamOperator.ChainingStrategy| Modifier and Type | Field and Description |
|---|---|
protected CloneableEvictionPolicy<IN> |
evictionPolicy |
protected Map<Object,StreamDiscretizer<IN>> |
groupedDiscretizers |
protected org.apache.flink.api.java.functions.KeySelector<IN,?> |
keySelector |
protected org.apache.flink.configuration.Configuration |
parameters |
protected CloneableTriggerPolicy<IN> |
triggerPolicy |
windowEventchainingStrategy, executionConfig, inputCopyDisabled, output, runtimeContext| Constructor and Description |
|---|
GroupedStreamDiscretizer(org.apache.flink.api.java.functions.KeySelector<IN,?> keySelector,
CloneableTriggerPolicy<IN> triggerPolicy,
CloneableEvictionPolicy<IN> evictionPolicy) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method is called after no more elements for can arrive for processing.
|
boolean |
equals(Object other) |
protected StreamDiscretizer<IN> |
makeNewGroup(Object key)
This method creates a new group.
|
void |
processElement(IN element) |
String |
toString() |
emitWindow, getEviction, getTrigger, open, processRealElement, triggerOnFakeElementdisableInputCopy, getChainingStrategy, isInputCopyingDisabled, setChainingStrategy, setupclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChainingStrategy, isInputCopyingDisabled, setChainingStrategy, setupprotected org.apache.flink.api.java.functions.KeySelector<IN,?> keySelector
protected org.apache.flink.configuration.Configuration parameters
protected CloneableTriggerPolicy<IN> triggerPolicy
protected CloneableEvictionPolicy<IN> evictionPolicy
protected Map<Object,StreamDiscretizer<IN>> groupedDiscretizers
public GroupedStreamDiscretizer(org.apache.flink.api.java.functions.KeySelector<IN,?> keySelector, CloneableTriggerPolicy<IN> triggerPolicy, CloneableEvictionPolicy<IN> evictionPolicy)
public void close()
throws Exception
StreamOperatorclose in interface StreamOperator<WindowEvent<IN>>close in class StreamDiscretizer<IN>Exceptionpublic void processElement(IN element) throws Exception
processElement in interface OneInputStreamOperator<IN,WindowEvent<IN>>processElement in class StreamDiscretizer<IN>Exceptionprotected StreamDiscretizer<IN> makeNewGroup(Object key) throws Exception
StreamDiscretizer and therefore created clones
of all distributed trigger and eviction policies.key - The key of the new group.Exceptionpublic boolean equals(Object other)
equals in class StreamDiscretizer<IN>public String toString()
toString in class StreamDiscretizer<IN>Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.