Search in sources :

Example 1 with TDigestHistogram

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))));
}
Also used : Metrics(io.trino.spi.metrics.Metrics) TDigest(io.airlift.stats.TDigest) TDigestHistogram(io.trino.plugin.base.metrics.TDigestHistogram)

Aggregations

TDigest (io.airlift.stats.TDigest)1 TDigestHistogram (io.trino.plugin.base.metrics.TDigestHistogram)1 Metrics (io.trino.spi.metrics.Metrics)1