Toggle navigation
Home
com.facebook.presto.tests.statistics.MetricComparison to java.util.OptionalDouble
No. of Instances - 1
No. of Commits - 1
No. of Projects - {'presto'}
Hierarchy/Composition: Composition
Primitive Info: -
NameSpace: Internal -> Jdk
Mapping:
Other
metric -> { Map<PlanNodeId,PlanNodeStatsEstimate> actuals=extractActualStats(outputStageInfo); return estimates.entrySet().stream().map(entry -> { PlanNode node=planNodeForId(queryPlan,entry.getKey()); PlanNodeStatsEstimate estimate=entry.getValue(); Optional<PlanNodeStatsEstimate> execution=Optional.ofNullable(actuals.get(node.getId())); return createMetricComparison(metric,node,estimate,execution); } ); }
to
outputNodeStatisticsEstimates
Add or Remove Method invocation
actuals.get(node.getId())
to
statsContext
Collectors.toList()
to
toImmutableList()
Stream
to
metrics.stream()
Stream.of(Metric.values())
to
metrics
Rename Variable
createMetricComparisons
to
getEstimatedValues