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 Object
implements org.apache.pulsar.functions.api.Function<I,O>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Function<Collection<I>,O> protected WaterMarkEventGenerator<org.apache.pulsar.functions.api.Record<I>>protected org.apache.pulsar.common.functions.WindowConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(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) process(Window<org.apache.pulsar.functions.api.Record<I>> inputWindow, org.apache.pulsar.functions.api.WindowContext context) voidshutdown()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.functions.api.Function
close
-
Field Details
-
windowConfig
protected org.apache.pulsar.common.functions.WindowConfig windowConfig -
waterMarkEventGenerator
protected transient WaterMarkEventGenerator<org.apache.pulsar.functions.api.Record<I>> waterMarkEventGenerator -
bareWindowFunction
-
windowFunction
-
-
Constructor Details
-
WindowFunctionExecutor
public WindowFunctionExecutor()
-
-
Method Details
-
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
-
process
public O process(Window<org.apache.pulsar.functions.api.Record<I>> inputWindow, org.apache.pulsar.functions.api.WindowContext context) throws Exception - Throws:
Exception
-