Class WindowOperatorFactory<K,IN,ACC,OUT,W extends Window>
- java.lang.Object
-
- org.apache.flink.streaming.api.operators.AbstractStreamOperatorFactory<OUT>
-
- org.apache.flink.streaming.runtime.operators.windowing.WindowOperatorFactory<K,IN,ACC,OUT,W>
-
- All Implemented Interfaces:
Serializable,OneInputStreamOperatorFactory<IN,OUT>,StreamOperatorFactory<OUT>,ProcessingTimeServiceAware
- Direct Known Subclasses:
EvictingWindowOperatorFactory
@Internal public class WindowOperatorFactory<K,IN,ACC,OUT,W extends Window> extends AbstractStreamOperatorFactory<OUT> implements OneInputStreamOperatorFactory<IN,OUT>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected longallowedLatenessprotected org.apache.flink.api.java.functions.KeySelector<IN,K>keySelectorprotected org.apache.flink.api.common.typeutils.TypeSerializer<K>keySerializerprotected org.apache.flink.util.OutputTag<IN>lateDataOutputTagprotected Trigger<? super IN,? super W>triggerprotected WindowAssigner<? super IN,W>windowAssignerprotected InternalWindowFunction<ACC,OUT,K,W>windowFunctionprotected org.apache.flink.api.common.typeutils.TypeSerializer<W>windowSerializerprotected org.apache.flink.api.common.state.StateDescriptor<? extends org.apache.flink.api.common.state.AppendingState<IN,ACC>,?>windowStateDescriptor-
Fields inherited from class org.apache.flink.streaming.api.operators.AbstractStreamOperatorFactory
chainingStrategy, processingTimeService
-
-
Constructor Summary
Constructors Constructor Description WindowOperatorFactory(WindowAssigner<? super IN,W> windowAssigner, org.apache.flink.api.common.typeutils.TypeSerializer<W> windowSerializer, org.apache.flink.api.java.functions.KeySelector<IN,K> keySelector, org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer, org.apache.flink.api.common.state.StateDescriptor<? extends org.apache.flink.api.common.state.AppendingState<IN,ACC>,?> windowStateDescriptor, InternalWindowFunction<ACC,OUT,K,W> windowFunction, Trigger<? super IN,? super W> trigger, long allowedLateness, org.apache.flink.util.OutputTag<IN> lateDataOutputTag)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends StreamOperator<OUT>>
TcreateStreamOperator(StreamOperatorParameters<OUT> parameters)Create the operator.org.apache.flink.api.java.functions.KeySelector<IN,K>getKeySelector()org.apache.flink.api.common.state.StateDescriptor<? extends org.apache.flink.api.common.state.AppendingState<IN,ACC>,?>getStateDescriptor()Class<? extends StreamOperator>getStreamOperatorClass(ClassLoader classLoader)Returns the runtime class of the stream operator.Trigger<? super IN,? super W>getTrigger()WindowAssigner<? super IN,W>getWindowAssigner()-
Methods inherited from class org.apache.flink.streaming.api.operators.AbstractStreamOperatorFactory
getChainingStrategy, getMailboxExecutor, setChainingStrategy, setMailboxExecutor, setProcessingTimeService
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.streaming.api.operators.StreamOperatorFactory
getChainingStrategy, getOperatorAttributes, isInputTypeConfigurable, isLegacySource, isOutputTypeConfigurable, isStreamSource, setChainingStrategy, setInputType, setOutputType
-
-
-
-
Field Detail
-
windowAssigner
protected final WindowAssigner<? super IN,W extends Window> windowAssigner
-
windowStateDescriptor
protected final org.apache.flink.api.common.state.StateDescriptor<? extends org.apache.flink.api.common.state.AppendingState<IN,ACC>,?> windowStateDescriptor
-
keySerializer
protected final org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer
-
windowSerializer
protected final org.apache.flink.api.common.typeutils.TypeSerializer<W extends Window> windowSerializer
-
allowedLateness
protected final long allowedLateness
-
lateDataOutputTag
protected final org.apache.flink.util.OutputTag<IN> lateDataOutputTag
-
-
Constructor Detail
-
WindowOperatorFactory
public WindowOperatorFactory(WindowAssigner<? super IN,W> windowAssigner, org.apache.flink.api.common.typeutils.TypeSerializer<W> windowSerializer, org.apache.flink.api.java.functions.KeySelector<IN,K> keySelector, org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer, org.apache.flink.api.common.state.StateDescriptor<? extends org.apache.flink.api.common.state.AppendingState<IN,ACC>,?> windowStateDescriptor, InternalWindowFunction<ACC,OUT,K,W> windowFunction, Trigger<? super IN,? super W> trigger, long allowedLateness, org.apache.flink.util.OutputTag<IN> lateDataOutputTag)
-
-
Method Detail
-
createStreamOperator
public <T extends StreamOperator<OUT>> T createStreamOperator(StreamOperatorParameters<OUT> parameters)
Description copied from interface:StreamOperatorFactoryCreate the operator. Sets access to the context and the output.- Specified by:
createStreamOperatorin interfaceStreamOperatorFactory<K>
-
getStreamOperatorClass
public Class<? extends StreamOperator> getStreamOperatorClass(ClassLoader classLoader)
Description copied from interface:StreamOperatorFactoryReturns the runtime class of the stream operator.- Specified by:
getStreamOperatorClassin interfaceStreamOperatorFactory<K>
-
getKeySelector
@VisibleForTesting public org.apache.flink.api.java.functions.KeySelector<IN,K> getKeySelector()
-
getWindowAssigner
@VisibleForTesting public WindowAssigner<? super IN,W> getWindowAssigner()
-
-