Class WindowFunctionExecutor<I,O>

java.lang.Object
org.apache.pulsar.functions.windowing.WindowFunctionExecutor<I,O>
All Implemented Interfaces:
org.apache.pulsar.functions.api.Function<I,O>

public class WindowFunctionExecutor<I,O> extends Object implements org.apache.pulsar.functions.api.Function<I,O>
  • Field Details

    • windowConfig

      protected org.apache.pulsar.common.functions.WindowConfig windowConfig
    • waterMarkEventGenerator

      protected transient WaterMarkEventGenerator<org.apache.pulsar.functions.api.Record<I>> waterMarkEventGenerator
    • bareWindowFunction

      protected Function<Collection<I>,O> bareWindowFunction
    • windowFunction

      protected org.apache.pulsar.functions.api.WindowFunction<I,O> windowFunction
  • Constructor Details

    • WindowFunctionExecutor

      public WindowFunctionExecutor()
  • Method Details

    • initialize

      public void initialize(org.apache.pulsar.functions.api.Context context)
      Specified by:
      initialize in interface org.apache.pulsar.functions.api.Function<I,O>
    • newWindowLifecycleListener

      protected WindowLifecycleListener<Event<org.apache.pulsar.functions.api.Record<I>>> newWindowLifecycleListener(org.apache.pulsar.functions.api.Context context)
    • shutdown

      public void shutdown()
    • process

      public O process(I input, org.apache.pulsar.functions.api.Context context) throws Exception
      Specified by:
      process in interface org.apache.pulsar.functions.api.Function<I,O>
      Throws:
      Exception
    • process

      public O process(Window<org.apache.pulsar.functions.api.Record<I>> inputWindow, org.apache.pulsar.functions.api.WindowContext context) throws Exception
      Throws:
      Exception