Class CoProcessFunction.Context
java.lang.Object
org.apache.flink.streaming.api.functions.co.CoProcessFunction.Context
- Direct Known Subclasses:
CoProcessFunction.OnTimerContext
- Enclosing class:
- CoProcessFunction<IN1,
IN2, OUT>
Information available in an invocation of
#processElement1(Object, Context, Collector)/ #processElement2(Object, Context, Collector) or #onTimer(long, OnTimerContext, Collector).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract <X> voidoutput(org.apache.flink.util.OutputTag<X> outputTag, X value) Emits a record to the side output identified by theOutputTag.abstract TimerServiceATimerServicefor querying time and registering timers.abstract LongTimestamp of the element currently being processed or timestamp of a firing timer.
-
Constructor Details
-
Context
public Context()
-
-
Method Details
-
timestamp
Timestamp of the element currently being processed or timestamp of a firing timer.This might be
null, depending on the stream's watermark strategy. -
timerService
ATimerServicefor querying time and registering timers. -
output
public abstract <X> void output(org.apache.flink.util.OutputTag<X> outputTag, X value) Emits a record to the side output identified by theOutputTag.- Parameters:
outputTag- theOutputTagthat identifies the side output to emit to.value- The record to emit.
-