Class ContextWindowFunction

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer process​(java.util.Collection<org.apache.pulsar.functions.api.Record<java.lang.Integer>> integers, 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

      • ContextWindowFunction

        public ContextWindowFunction()
    • Method Detail

      • process

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