Package org.apache.pulsar.functions.api
Interface WindowFunction<I,O>
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Public @Stable @FunctionalInterface public interface WindowFunction<I,O>
This is the interface of the windowed function api. The process method is called for every triggered window.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description O
process(java.util.Collection<Record<I>> input, WindowContext context)
Process the input.
-
-
-
Method Detail
-
process
O process(java.util.Collection<Record<I>> input, WindowContext context) throws java.lang.Exception
Process the input.- Returns:
- the output
- Throws:
java.lang.Exception
-
-