@InterfaceStability.Unstable public interface StreamOperatorTask
StreamOperatorTask
is the basic interface to implement for processing MessageStream
s.
Implementations can describe the transformation steps for each MessageStream
in the
transform(java.util.Map<org.apache.samza.system.SystemStreamPartition, org.apache.samza.operators.MessageStream<org.apache.samza.operators.data.IncomingSystemMessageEnvelope>>)
method using MessageStream
APIs.
Implementations may be augmented by implementing InitableTask
,
WindowableTask
and ClosableTask
interfaces,
but should not implement StreamTask
or AsyncStreamTask
interfaces.
Modifier and Type | Method and Description |
---|---|
void |
transform(java.util.Map<SystemStreamPartition,MessageStream<IncomingSystemMessageEnvelope>> messageStreams)
Describe the transformation steps for each
MessageStream s for this task using the
MessageStream APIs. |
void transform(java.util.Map<SystemStreamPartition,MessageStream<IncomingSystemMessageEnvelope>> messageStreams)
MessageStream
s for this task using the
MessageStream
APIs. Each MessageStream
corresponds to one SystemStreamPartition
in the input system.messageStreams
- the MessageStream
s that receive IncomingSystemMessageEnvelope
s
from their corresponding SystemStreamPartition