Interface NonPartitionedContext<OUT>

All Superinterfaces:
RuntimeContext

@Experimental public interface NonPartitionedContext<OUT> extends RuntimeContext
This interface represents the context associated with all operations must be applied to all partitions.
  • Method Details

    • applyToAllPartitions

      void applyToAllPartitions(ApplyPartitionFunction<OUT> applyPartitionFunction) throws Exception
      Apply 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()
      Get WatermarkManager instance, which allow emitting a Watermark from the process function.