Class ContextWindowFunction
- java.lang.Object
-
- org.apache.pulsar.functions.api.examples.window.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.
-
-
Constructor Summary
Constructors Constructor Description ContextWindowFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integerprocess(java.util.Collection<org.apache.pulsar.functions.api.Record<java.lang.Integer>> integers, org.apache.pulsar.functions.api.WindowContext context)
-
-
-
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:
processin interfaceorg.apache.pulsar.functions.api.WindowFunction<java.lang.Integer,java.lang.Integer>
-
-