Class BroadcastProcessFunction.Context
java.lang.Object
org.apache.flink.streaming.api.functions.co.BaseBroadcastProcessFunction.Context
org.apache.flink.streaming.api.functions.co.BroadcastProcessFunction.Context
- Enclosing class:
- BroadcastProcessFunction<IN1,
IN2, OUT>
A
context available to the broadcast side of a
BroadcastConnectedStream.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract longReturns the current processing time.abstract longReturns the current event-time watermark.abstract <X> voidoutput(org.apache.flink.util.OutputTag<X> outputTag, X value) Emits a record to the side output identified by theOutputTag.abstract LongTimestamp of the element currently being processed or timestamp of a firing timer.Methods inherited from class org.apache.flink.streaming.api.functions.co.BaseBroadcastProcessFunction.Context
getBroadcastState
-
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. -
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.
-
currentProcessingTime
public abstract long currentProcessingTime()Returns the current processing time. -
currentWatermark
public abstract long currentWatermark()Returns the current event-time watermark.
-