Package io.airlift.stats
Class Distribution
- java.lang.Object
-
- io.airlift.stats.Distribution
-
@ThreadSafe public class Distribution extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDistribution.DistributionSnapshot
-
Constructor Summary
Constructors Constructor Description Distribution()Distribution(double alpha)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(long value)voidadd(long value, long count)Distributionduplicate()doublegetAvg()doublegetCount()doublegetMax()doublegetMin()doublegetP01()doublegetP05()doublegetP10()doublegetP25()doublegetP50()doublegetP75()doublegetP90()doublegetP95()doublegetP99()Map<Double,Double>getPercentiles()List<Double>getPercentiles(List<Double> percentiles)doublegetTotal()Distribution.DistributionSnapshotsnapshot()
-
-
-
Method Detail
-
add
public void add(long value)
-
add
public void add(long value, long count)
-
duplicate
public Distribution duplicate()
-
getCount
public double getCount()
-
getTotal
public double getTotal()
-
getP01
public double getP01()
-
getP05
public double getP05()
-
getP10
public double getP10()
-
getP25
public double getP25()
-
getP50
public double getP50()
-
getP75
public double getP75()
-
getP90
public double getP90()
-
getP95
public double getP95()
-
getP99
public double getP99()
-
getMin
public double getMin()
-
getMax
public double getMax()
-
getAvg
public double getAvg()
-
snapshot
public Distribution.DistributionSnapshot snapshot()
-
-