Class PublishWindowFunction

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

public class PublishWindowFunction extends Object implements org.apache.pulsar.functions.api.WindowFunction<String,Void>
Example function that uses the built in publish function in the context to publish to a desired topic based on config.
  • Constructor Details

    • PublishWindowFunction

      public PublishWindowFunction()
  • Method Details

    • process

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