Class ContextWindowFunction

java.lang.Object
org.apache.pulsar.functions.api.examples.window.ContextWindowFunction
All Implemented Interfaces:
org.apache.pulsar.functions.api.WindowFunction<Integer,Integer>

public class ContextWindowFunction extends Object implements org.apache.pulsar.functions.api.WindowFunction<Integer,Integer>
Example Function that acts on a window of tuples at a time rather than per tuple basis.
  • Constructor Details

    • ContextWindowFunction

      public ContextWindowFunction()
  • Method Details

    • process

      public Integer process(Collection<org.apache.pulsar.functions.api.Record<Integer>> integers, org.apache.pulsar.functions.api.WindowContext context)
      Specified by:
      process in interface org.apache.pulsar.functions.api.WindowFunction<Integer,Integer>