Class EventTimeWrappedTwoInputBroadcastStreamProcessFunction<IN1,IN2,OUT>

java.lang.Object
org.apache.flink.datastream.impl.extension.eventtime.functions.EventTimeWrappedTwoInputBroadcastStreamProcessFunction<IN1,IN2,OUT>
All Implemented Interfaces:
Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.datastream.api.function.ProcessFunction, org.apache.flink.datastream.api.function.TwoInputBroadcastStreamProcessFunction<IN1,IN2,OUT>

public class EventTimeWrappedTwoInputBroadcastStreamProcessFunction<IN1,IN2,OUT> extends Object implements org.apache.flink.datastream.api.function.TwoInputBroadcastStreamProcessFunction<IN1,IN2,OUT>
The wrapped TwoInputBroadcastEventTimeStreamProcessFunction that take care of event-time alignment with idleness.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    EventTimeWrappedTwoInputBroadcastStreamProcessFunction(org.apache.flink.datastream.api.extension.eventtime.function.TwoInputBroadcastEventTimeStreamProcessFunction<IN1,IN2,OUT> wrappedUserFunction)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    Set<? extends org.apache.flink.api.common.watermark.WatermarkDeclaration>
     
    void
    endBroadcastInput(org.apache.flink.datastream.api.context.NonPartitionedContext<OUT> ctx)
     
    void
    endNonBroadcastInput(org.apache.flink.datastream.api.context.NonPartitionedContext<OUT> ctx)
     
    org.apache.flink.datastream.api.function.TwoInputBroadcastStreamProcessFunction<IN1,IN2,OUT>
     
    void
    initEventTimeExtension(org.apache.flink.streaming.api.operators.InternalTimerService<org.apache.flink.runtime.state.VoidNamespace> timerService, Supplier<Long> eventTimeSupplier, org.apache.flink.streaming.runtime.watermark.extension.eventtime.EventTimeWatermarkHandler eventTimeWatermarkHandler)
    Initialize the event time extension, note that this method should be invoked before open method.
    void
    onEventTime(long timestamp, org.apache.flink.datastream.api.common.Collector<OUT> output, org.apache.flink.datastream.api.context.PartitionedContext<OUT> ctx)
     
    void
    onProcessingTimer(long timestamp, org.apache.flink.datastream.api.common.Collector<OUT> output, org.apache.flink.datastream.api.context.PartitionedContext<OUT> ctx)
     
    org.apache.flink.api.common.watermark.WatermarkHandlingResult
    onWatermarkFromBroadcastInput(org.apache.flink.api.common.watermark.Watermark watermark, org.apache.flink.datastream.api.common.Collector<OUT> output, org.apache.flink.datastream.api.context.NonPartitionedContext<OUT> ctx)
     
    org.apache.flink.api.common.watermark.WatermarkHandlingResult
    onWatermarkFromNonBroadcastInput(org.apache.flink.api.common.watermark.Watermark watermark, org.apache.flink.datastream.api.common.Collector<OUT> output, org.apache.flink.datastream.api.context.NonPartitionedContext<OUT> ctx)
     
    void
    open(org.apache.flink.datastream.api.context.NonPartitionedContext<OUT> ctx)
     
    void
    processRecordFromBroadcastInput(IN2 record, org.apache.flink.datastream.api.context.NonPartitionedContext<OUT> ctx)
     
    void
    processRecordFromNonBroadcastInput(IN1 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>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EventTimeWrappedTwoInputBroadcastStreamProcessFunction

      public EventTimeWrappedTwoInputBroadcastStreamProcessFunction(org.apache.flink.datastream.api.extension.eventtime.function.TwoInputBroadcastEventTimeStreamProcessFunction<IN1,IN2,OUT> wrappedUserFunction)
  • Method Details

    • open

      public void open(org.apache.flink.datastream.api.context.NonPartitionedContext<OUT> ctx) throws Exception
      Specified by:
      open in interface org.apache.flink.datastream.api.function.TwoInputBroadcastStreamProcessFunction<IN1,IN2,OUT>
      Throws:
      Exception
    • initEventTimeExtension

      public void initEventTimeExtension(@Nullable org.apache.flink.streaming.api.operators.InternalTimerService<org.apache.flink.runtime.state.VoidNamespace> timerService, Supplier<Long> eventTimeSupplier, org.apache.flink.streaming.runtime.watermark.extension.eventtime.EventTimeWatermarkHandler eventTimeWatermarkHandler)
      Initialize the event time extension, note that this method should be invoked before open method.
    • processRecordFromNonBroadcastInput

      public void processRecordFromNonBroadcastInput(IN1 record, org.apache.flink.datastream.api.common.Collector<OUT> output, org.apache.flink.datastream.api.context.PartitionedContext<OUT> ctx) throws Exception
      Specified by:
      processRecordFromNonBroadcastInput in interface org.apache.flink.datastream.api.function.TwoInputBroadcastStreamProcessFunction<IN1,IN2,OUT>
      Throws:
      Exception
    • processRecordFromBroadcastInput

      public void processRecordFromBroadcastInput(IN2 record, org.apache.flink.datastream.api.context.NonPartitionedContext<OUT> ctx) throws Exception
      Specified by:
      processRecordFromBroadcastInput in interface org.apache.flink.datastream.api.function.TwoInputBroadcastStreamProcessFunction<IN1,IN2,OUT>
      Throws:
      Exception
    • endBroadcastInput

      public void endBroadcastInput(org.apache.flink.datastream.api.context.NonPartitionedContext<OUT> ctx) throws Exception
      Specified by:
      endBroadcastInput in interface org.apache.flink.datastream.api.function.TwoInputBroadcastStreamProcessFunction<IN1,IN2,OUT>
      Throws:
      Exception
    • endNonBroadcastInput

      public void endNonBroadcastInput(org.apache.flink.datastream.api.context.NonPartitionedContext<OUT> ctx) throws Exception
      Specified by:
      endNonBroadcastInput in interface org.apache.flink.datastream.api.function.TwoInputBroadcastStreamProcessFunction<IN1,IN2,OUT>
      Throws:
      Exception
    • onProcessingTimer

      public void onProcessingTimer(long timestamp, org.apache.flink.datastream.api.common.Collector<OUT> output, org.apache.flink.datastream.api.context.PartitionedContext<OUT> ctx) throws Exception
      Specified by:
      onProcessingTimer in interface org.apache.flink.datastream.api.function.TwoInputBroadcastStreamProcessFunction<IN1,IN2,OUT>
      Throws:
      Exception
    • onWatermarkFromBroadcastInput

      public org.apache.flink.api.common.watermark.WatermarkHandlingResult onWatermarkFromBroadcastInput(org.apache.flink.api.common.watermark.Watermark watermark, org.apache.flink.datastream.api.common.Collector<OUT> output, org.apache.flink.datastream.api.context.NonPartitionedContext<OUT> ctx) throws Exception
      Specified by:
      onWatermarkFromBroadcastInput in interface org.apache.flink.datastream.api.function.TwoInputBroadcastStreamProcessFunction<IN1,IN2,OUT>
      Throws:
      Exception
    • onWatermarkFromNonBroadcastInput

      public org.apache.flink.api.common.watermark.WatermarkHandlingResult onWatermarkFromNonBroadcastInput(org.apache.flink.api.common.watermark.Watermark watermark, org.apache.flink.datastream.api.common.Collector<OUT> output, org.apache.flink.datastream.api.context.NonPartitionedContext<OUT> ctx) throws Exception
      Specified by:
      onWatermarkFromNonBroadcastInput in interface org.apache.flink.datastream.api.function.TwoInputBroadcastStreamProcessFunction<IN1,IN2,OUT>
      Throws:
      Exception
    • onEventTime

      public void onEventTime(long timestamp, org.apache.flink.datastream.api.common.Collector<OUT> output, org.apache.flink.datastream.api.context.PartitionedContext<OUT> ctx) throws Exception
      Throws:
      Exception
    • close

      public void close() throws Exception
      Specified by:
      close in interface org.apache.flink.datastream.api.function.ProcessFunction
      Throws:
      Exception
    • usesStates

      public Set<org.apache.flink.api.common.state.StateDeclaration> usesStates()
      Specified by:
      usesStates in interface org.apache.flink.datastream.api.function.ProcessFunction
    • declareWatermarks

      public Set<? extends org.apache.flink.api.common.watermark.WatermarkDeclaration> declareWatermarks()
      Specified by:
      declareWatermarks in interface org.apache.flink.datastream.api.function.ProcessFunction
    • getWrappedUserFunction

      public org.apache.flink.datastream.api.function.TwoInputBroadcastStreamProcessFunction<IN1,IN2,OUT> getWrappedUserFunction()