Class UserMetricWindowFunction

java.lang.Object
org.apache.pulsar.functions.api.examples.window.UserMetricWindowFunction
All Implemented Interfaces:
org.apache.pulsar.functions.api.WindowFunction<String,Void>

public class UserMetricWindowFunction extends Object implements org.apache.pulsar.functions.api.WindowFunction<String,Void>
Example function that wants to keep track of the event time of each message sent.
  • Constructor Details

    • UserMetricWindowFunction

      public UserMetricWindowFunction()
  • Method Details

    • process

      public Void process(Collection<org.apache.pulsar.functions.api.Record<String>> inputs, org.apache.pulsar.functions.api.WindowContext context) throws Exception
      Specified by:
      process in interface org.apache.pulsar.functions.api.WindowFunction<String,Void>
      Throws:
      Exception