You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* All operator function implementations used in a {@link StreamApplication} must be {@link java.io.Serializable}. Any
65
+
* context required within an operator function may be managed by implementing the
66
+
* {@link org.apache.samza.operators.functions.InitableFunction#init} and
67
+
* {@link org.apache.samza.operators.functions.ClosableFunction#close} methods in the function implementation.
68
+
* <p>
69
+
* Functions may implement the {@link org.apache.samza.operators.functions.ScheduledFunction} interface
70
+
* to schedule and receive periodic callbacks from the Samza framework.
60
71
* <p>
61
72
* Implementation Notes: Currently {@link StreamApplication}s are wrapped in a {@link org.apache.samza.task.StreamTask}
62
73
* during execution. The execution planner will generate a serialized DAG which will be deserialized in each
63
74
* {@link org.apache.samza.task.StreamTask} instance used for processing incoming messages. Execution is synchronous
64
-
* and thread-safe within each {@link org.apache.samza.task.StreamTask}.
65
-
*
66
-
* <p>
67
-
* A {@link StreamApplication} implementation must have a proper fully-qualified class name and a default constructor
68
-
* with no parameters to ensure successful instantiation in both local and remote environments.
69
-
* Functions implemented for transforms in StreamApplications ({@link org.apache.samza.operators.functions.MapFunction},
70
-
* {@link org.apache.samza.operators.functions.FilterFunction} for e.g.) are initable and closable. They are initialized
71
-
* before messages are delivered to them and closed after their execution when the {@link org.apache.samza.task.StreamTask}
72
-
* instance is closed. See {@link org.apache.samza.operators.functions.InitableFunction} and {@link org.apache.samza.operators.functions.ClosableFunction}.
73
-
* Function implementations are required to be {@link java.io.Serializable}.
75
+
* and thread-safe within each {@link org.apache.samza.task.StreamTask}. Multiple tasks may process their
76
+
* messages concurrently depending on the job parallelism configuration.
0 commit comments