Class WindowFunctionExecutor<I,O>
- java.lang.Object
-
- org.apache.pulsar.functions.windowing.WindowFunctionExecutor<I,O>
-
- All Implemented Interfaces:
org.apache.pulsar.functions.api.Function<I,O>
public class WindowFunctionExecutor<I,O> extends java.lang.Object implements org.apache.pulsar.functions.api.Function<I,O>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.function.Function<java.util.Collection<I>,O>bareWindowFunctionprotected WaterMarkEventGenerator<org.apache.pulsar.functions.api.Record<I>>waterMarkEventGeneratorprotected org.apache.pulsar.common.functions.WindowConfigwindowConfigprotected org.apache.pulsar.functions.api.WindowFunction<I,O>windowFunction
-
Constructor Summary
Constructors Constructor Description WindowFunctionExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(org.apache.pulsar.functions.api.Context context)protected WindowLifecycleListener<Event<org.apache.pulsar.functions.api.Record<I>>>newWindowLifecycleListener(org.apache.pulsar.functions.api.Context context)Oprocess(I input, org.apache.pulsar.functions.api.Context context)Oprocess(Window<org.apache.pulsar.functions.api.Record<I>> inputWindow, org.apache.pulsar.functions.api.WindowContext context)voidshutdown()
-
-
-
Field Detail
-
windowConfig
protected org.apache.pulsar.common.functions.WindowConfig windowConfig
-
waterMarkEventGenerator
protected transient WaterMarkEventGenerator<org.apache.pulsar.functions.api.Record<I>> waterMarkEventGenerator
-
bareWindowFunction
protected java.util.function.Function<java.util.Collection<I>,O> bareWindowFunction
-
-
Method Detail
-
initialize
public void initialize(org.apache.pulsar.functions.api.Context context)
-
newWindowLifecycleListener
protected WindowLifecycleListener<Event<org.apache.pulsar.functions.api.Record<I>>> newWindowLifecycleListener(org.apache.pulsar.functions.api.Context context)
-
shutdown
public void shutdown()
-
process
public O process(I input, org.apache.pulsar.functions.api.Context context) throws java.lang.Exception
-
-