Class DoFnRunnerWithMetrics<InputT,OutputT>
java.lang.Object
org.apache.beam.runners.spark.translation.DoFnRunnerWithMetrics<InputT,OutputT>
- All Implemented Interfaces:
org.apache.beam.runners.core.DoFnRunner<InputT,OutputT>
public class DoFnRunnerWithMetrics<InputT,OutputT>
extends Object
implements org.apache.beam.runners.core.DoFnRunner<InputT,OutputT>
DoFnRunner decorator which registers
MetricsContainerImpl.-
Constructor Summary
ConstructorsConstructorDescriptionDoFnRunnerWithMetrics(String stepName, org.apache.beam.runners.core.DoFnRunner<InputT, OutputT> delegate, MetricsContainerStepMapAccumulator metricsAccum) -
Method Summary
Modifier and TypeMethodDescriptionvoidgetFn()<KeyT> voidonTimer(String timerId, String timerFamilyId, KeyT key, org.apache.beam.sdk.transforms.windowing.BoundedWindow window, org.joda.time.Instant timestamp, org.joda.time.Instant outputTimestamp, org.apache.beam.sdk.state.TimeDomain timeDomain, org.apache.beam.sdk.values.CausedByDrain causedByDrain) <KeyT> voidonWindowExpiration(org.apache.beam.sdk.transforms.windowing.BoundedWindow window, org.joda.time.Instant timestamp, KeyT key) voidprocessElement(org.apache.beam.sdk.values.WindowedValue<InputT> elem) void
-
Constructor Details
-
DoFnRunnerWithMetrics
public DoFnRunnerWithMetrics(String stepName, org.apache.beam.runners.core.DoFnRunner<InputT, OutputT> delegate, MetricsContainerStepMapAccumulator metricsAccum)
-
-
Method Details
-
getFn
-
startBundle
public void startBundle() -
processElement
-
onTimer
public <KeyT> void onTimer(String timerId, String timerFamilyId, KeyT key, org.apache.beam.sdk.transforms.windowing.BoundedWindow window, org.joda.time.Instant timestamp, org.joda.time.Instant outputTimestamp, org.apache.beam.sdk.state.TimeDomain timeDomain, org.apache.beam.sdk.values.CausedByDrain causedByDrain) -
finishBundle
public void finishBundle() -
onWindowExpiration
public <KeyT> void onWindowExpiration(org.apache.beam.sdk.transforms.windowing.BoundedWindow window, org.joda.time.Instant timestamp, KeyT key)
-