Class EventTimeWrappedTwoInputNonBroadcastStreamProcessFunction<IN1,IN2,OUT>

java.lang.Object
org.apache.flink.datastream.impl.extension.eventtime.functions.EventTimeWrappedTwoInputNonBroadcastStreamProcessFunction<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.TwoInputNonBroadcastStreamProcessFunction<IN1,IN2,OUT>

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

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

    Modifier and Type
    Method
    Description
    void
     
    Set<? extends org.apache.flink.api.common.watermark.WatermarkDeclaration>
     
    void
    endFirstInput(org.apache.flink.datastream.api.context.NonPartitionedContext<OUT> ctx)
     
    void
    endSecondInput(org.apache.flink.datastream.api.context.NonPartitionedContext<OUT> ctx)
     
    org.apache.flink.datastream.api.function.TwoInputNonBroadcastStreamProcessFunction<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
    onWatermarkFromFirstInput(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
    onWatermarkFromSecondInput(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
    processRecordFromFirstInput(IN1 record, org.apache.flink.datastream.api.common.Collector<OUT> output, org.apache.flink.datastream.api.context.PartitionedContext<OUT> ctx)
     
    void
    processRecordFromSecondInput(IN2 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

    • EventTimeWrappedTwoInputNonBroadcastStreamProcessFunction

      public EventTimeWrappedTwoInputNonBroadcastStreamProcessFunction(org.apache.flink.datastream.api.extension.eventtime.function.TwoInputNonBroadcastEventTimeStreamProcessFunction<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.TwoInputNonBroadcastStreamProcessFunction<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.
    • processRecordFromFirstInput

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

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

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

      public void endSecondInput(org.apache.flink.datastream.api.context.NonPartitionedContext<OUT> ctx) throws Exception
      Specified by:
      endSecondInput in interface org.apache.flink.datastream.api.function.TwoInputNonBroadcastStreamProcessFunction<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.TwoInputNonBroadcastStreamProcessFunction<IN1,IN2,OUT>
      Throws:
      Exception
    • onWatermarkFromFirstInput

      public org.apache.flink.api.common.watermark.WatermarkHandlingResult onWatermarkFromFirstInput(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:
      onWatermarkFromFirstInput in interface org.apache.flink.datastream.api.function.TwoInputNonBroadcastStreamProcessFunction<IN1,IN2,OUT>
      Throws:
      Exception
    • onWatermarkFromSecondInput

      public org.apache.flink.api.common.watermark.WatermarkHandlingResult onWatermarkFromSecondInput(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:
      onWatermarkFromSecondInput in interface org.apache.flink.datastream.api.function.TwoInputNonBroadcastStreamProcessFunction<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.TwoInputNonBroadcastStreamProcessFunction<IN1,IN2,OUT> getWrappedUserFunction()