Class StatefulStreamingParDoEvaluator<KeyT,ValueT,OutputT>
- java.lang.Object
-
- org.apache.beam.runners.spark.translation.streaming.StatefulStreamingParDoEvaluator<KeyT,ValueT,OutputT>
-
- All Implemented Interfaces:
java.io.Serializable,TransformEvaluator<org.apache.beam.sdk.transforms.ParDo.MultiOutput<org.apache.beam.sdk.values.KV<KeyT,ValueT>,OutputT>>
public class StatefulStreamingParDoEvaluator<KeyT,ValueT,OutputT> extends java.lang.Object implements TransformEvaluator<org.apache.beam.sdk.transforms.ParDo.MultiOutput<org.apache.beam.sdk.values.KV<KeyT,ValueT>,OutputT>>
A specialized evaluator for ParDo operations in Spark Streaming context that is invoked when stateful streaming is detected in the DoFn.This class is used by
StreamingTransformTranslator's ParDo evaluator to handle stateful streaming operations. When a DoFn contains stateful processing logic, the translation process routes the execution through this evaluator instead of the standard ParDo evaluator.The evaluator manages state handling and ensures proper processing semantics for streaming stateful operations in the Spark runner context.
Important: This evaluator includes validation logic that rejects DoFn implementations containing
@Timerannotations, as timer functionality is not currently supported in the Spark streaming context.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StatefulStreamingParDoEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidevaluate(org.apache.beam.sdk.transforms.ParDo.MultiOutput<org.apache.beam.sdk.values.KV<KeyT,ValueT>,OutputT> transform, EvaluationContext context)java.lang.StringtoNativeString()
-
-
-
Method Detail
-
evaluate
public void evaluate(org.apache.beam.sdk.transforms.ParDo.MultiOutput<org.apache.beam.sdk.values.KV<KeyT,ValueT>,OutputT> transform, EvaluationContext context)
- Specified by:
evaluatein interfaceTransformEvaluator<KeyT>
-
toNativeString
public java.lang.String toNativeString()
- Specified by:
toNativeStringin interfaceTransformEvaluator<KeyT>
-
-