Interface TwoOutputNonPartitionedContext<OUT1,OUT2>
- All Superinterfaces:
RuntimeContext
This interface represents the context associated with all operations must be applied to all
partitions with two outputs.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyToAllPartitions(TwoOutputApplyPartitionFunction<OUT1, OUT2> applyPartitionFunction) Apply a function to all partitions.org.apache.flink.api.common.watermark.WatermarkManagerGetWatermarkManagerinstance, which allow emitting aWatermarkfrom the process function.Methods inherited from interface org.apache.flink.datastream.api.context.RuntimeContext
getJobInfo, getMetricGroup, getTaskInfo
-
Method Details
-
applyToAllPartitions
void applyToAllPartitions(TwoOutputApplyPartitionFunction<OUT1, OUT2> applyPartitionFunction) throws ExceptionApply a function to all partitions. For keyed stream, it will apply to all keys. For non-keyed stream, it will apply to single partition.- Throws:
Exception
-
getWatermarkManager
org.apache.flink.api.common.watermark.WatermarkManager getWatermarkManager()GetWatermarkManagerinstance, which allow emitting aWatermarkfrom the process function.
-