use of io.trino.plugin.base.metrics.TDigestHistogram in project trino by trinodb.
the class OperatorContext method getOperatorMetrics.
public static Metrics getOperatorMetrics(Metrics operatorMetrics, long inputPositions) {
TDigest digest = new TDigest();
digest.add(inputPositions);
return operatorMetrics.mergeWith(new Metrics(ImmutableMap.of("Input distribution", new TDigestHistogram(digest))));
}
Aggregations