Class InternalTwoInputWindowStreamProcessFunction<IN1,IN2,OUT,W extends org.apache.flink.streaming.api.windowing.windows.Window>
- java.lang.Object
-
- org.apache.flink.datastream.impl.extension.window.function.InternalTwoInputWindowStreamProcessFunction<IN1,IN2,OUT,W>
-
- Type Parameters:
IN1- Type of the first input elements.IN2- Type of the second input elements.OUT- Type of the output elements.W- Type of the window.
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.Function,org.apache.flink.datastream.api.function.ProcessFunction,org.apache.flink.datastream.api.function.TwoInputNonBroadcastStreamProcessFunction<IN1,IN2,OUT>
public class InternalTwoInputWindowStreamProcessFunction<IN1,IN2,OUT,W extends org.apache.flink.streaming.api.windowing.windows.Window> extends Object implements org.apache.flink.datastream.api.function.TwoInputNonBroadcastStreamProcessFunction<IN1,IN2,OUT>
A class that wrap aTwoInputNonBroadcastWindowStreamProcessFunctionto process function. This will be translated to a window operator instead of vanilla process operator.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InternalTwoInputWindowStreamProcessFunction(org.apache.flink.datastream.api.extension.window.function.TwoInputNonBroadcastWindowStreamProcessFunction<IN1,IN2,OUT> windowProcessFunction, org.apache.flink.streaming.api.windowing.assigners.WindowAssigner<org.apache.flink.util.TaggedUnion<IN1,IN2>,W> assigner, org.apache.flink.streaming.api.windowing.triggers.Trigger<org.apache.flink.util.TaggedUnion<IN1,IN2>,W> trigger, long allowedLateness, org.apache.flink.datastream.api.extension.window.strategy.WindowStrategy windowStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAllowedLateness()org.apache.flink.streaming.api.windowing.assigners.WindowAssigner<org.apache.flink.util.TaggedUnion<IN1,IN2>,W>getAssigner()org.apache.flink.streaming.api.windowing.triggers.Trigger<org.apache.flink.util.TaggedUnion<IN1,IN2>,W>getTrigger()org.apache.flink.datastream.api.extension.window.function.TwoInputNonBroadcastWindowStreamProcessFunction<IN1,IN2,OUT>getWindowProcessFunction()org.apache.flink.datastream.api.extension.window.strategy.WindowStrategygetWindowStrategy()voidprocessRecordFromFirstInput(IN1 record, org.apache.flink.datastream.api.common.Collector<OUT> output, org.apache.flink.datastream.api.context.PartitionedContext<OUT> ctx)voidprocessRecordFromSecondInput(IN2 record, org.apache.flink.datastream.api.common.Collector<OUT> output, org.apache.flink.datastream.api.context.PartitionedContext<OUT> ctx)Set<org.apache.flink.api.common.state.StateDeclaration>usesStates()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
InternalTwoInputWindowStreamProcessFunction
public InternalTwoInputWindowStreamProcessFunction(org.apache.flink.datastream.api.extension.window.function.TwoInputNonBroadcastWindowStreamProcessFunction<IN1,IN2,OUT> windowProcessFunction, org.apache.flink.streaming.api.windowing.assigners.WindowAssigner<org.apache.flink.util.TaggedUnion<IN1,IN2>,W> assigner, org.apache.flink.streaming.api.windowing.triggers.Trigger<org.apache.flink.util.TaggedUnion<IN1,IN2>,W> trigger, long allowedLateness, org.apache.flink.datastream.api.extension.window.strategy.WindowStrategy windowStrategy)
-
-
Method Detail
-
processRecordFromFirstInput
public void processRecordFromFirstInput(IN1 record, org.apache.flink.datastream.api.common.Collector<OUT> output, org.apache.flink.datastream.api.context.PartitionedContext<OUT> ctx) throws Exception
-
processRecordFromSecondInput
public void processRecordFromSecondInput(IN2 record, org.apache.flink.datastream.api.common.Collector<OUT> output, org.apache.flink.datastream.api.context.PartitionedContext<OUT> ctx) throws Exception
-
getWindowProcessFunction
public org.apache.flink.datastream.api.extension.window.function.TwoInputNonBroadcastWindowStreamProcessFunction<IN1,IN2,OUT> getWindowProcessFunction()
-
usesStates
public Set<org.apache.flink.api.common.state.StateDeclaration> usesStates()
- Specified by:
usesStatesin interfaceorg.apache.flink.datastream.api.function.ProcessFunction
-
getAssigner
public org.apache.flink.streaming.api.windowing.assigners.WindowAssigner<org.apache.flink.util.TaggedUnion<IN1,IN2>,W> getAssigner()
-
getTrigger
public org.apache.flink.streaming.api.windowing.triggers.Trigger<org.apache.flink.util.TaggedUnion<IN1,IN2>,W> getTrigger()
-
getAllowedLateness
public long getAllowedLateness()
-
getWindowStrategy
public org.apache.flink.datastream.api.extension.window.strategy.WindowStrategy getWindowStrategy()
-
-