Class UserConfigWindowFunction

  • All Implemented Interfaces:
    org.apache.pulsar.functions.api.WindowFunction<java.lang.String,​java.lang.String>

    public class UserConfigWindowFunction
    extends java.lang.Object
    implements org.apache.pulsar.functions.api.WindowFunction<java.lang.String,​java.lang.String>
    An example demonstrate retrieving user config value from Context.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String process​(java.util.Collection<org.apache.pulsar.functions.api.Record<java.lang.String>> input, org.apache.pulsar.functions.api.WindowContext context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UserConfigWindowFunction

        public UserConfigWindowFunction()
    • Method Detail

      • process

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