Skip to content

Commit

Permalink
[BEAM-1672] Use Accumulable MetricsContainers in Direct runner.
Browse files Browse the repository at this point in the history
  • Loading branch information
aviemzur committed Apr 24, 2017
1 parent 5204c53 commit ebbb72a
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 630 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import org.apache.beam.sdk.Pipeline.PipelineExecutionException;
import org.apache.beam.sdk.PipelineResult;
import org.apache.beam.sdk.io.Read;
import org.apache.beam.sdk.metrics.AccumulatedMetricResults;
import org.apache.beam.sdk.metrics.MetricResults;
import org.apache.beam.sdk.metrics.MetricsEnvironment;
import org.apache.beam.sdk.options.PipelineOptions;
Expand Down Expand Up @@ -411,7 +412,9 @@ public String toString() {

@Override
public MetricResults metrics() {
return evaluationContext.getMetrics();
return new AccumulatedMetricResults(
evaluationContext.getAttemptedMetrics(),
evaluationContext.getCommittedMetrics());
}

/**
Expand Down
Loading

0 comments on commit ebbb72a

Please sign in to comment.