Class ContextWindowFunction
java.lang.Object
org.apache.pulsar.functions.api.examples.window.ContextWindowFunction
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocess(Collection<org.apache.pulsar.functions.api.Record<Integer>> integers, org.apache.pulsar.functions.api.WindowContext context)
-
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)
-