Package org.apache.hadoop.hbase.metrics
Interface Snapshot
A statictical sample of histogram values.
-
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the value at the 25th percentile in the distribution.long
Returns the value at the 75th percentile in the distribution.long
Returns the value at the 90th percentile in the distribution.long
Returns the value at the 95th percentile in the distribution.long
Returns the value at the 98th percentile in the distribution.long
Returns the value at the 99.9th percentile in the distribution.long
Returns the value at the 99th percentile in the distribution.long
getCount()
Returns the number of values in the snapshot.long
getCountAtOrBelow
(long val) Returns the total count below the given valuelong
getMax()
Returns the highest value in the snapshot.long
getMean()
Returns the arithmetic mean of the values in the snapshot.long
Returns the median value in the distribution.long
getMin()
Returns the lowest value in the snapshot.long[]
Return the values with the default quantiles.long[]
getQuantiles
(double[] quantiles) Return the values with the given quantiles.
-
Method Details
-
getQuantiles
Return the values with the given quantiles.- Parameters:
quantiles
- the requested quantiles.- Returns:
- the value for the quantiles.
-
getQuantiles
long[] getQuantiles()Return the values with the default quantiles.- Returns:
- the value for default the quantiles.
-
getCount
long getCount()Returns the number of values in the snapshot.- Returns:
- the number of values
-
getCountAtOrBelow
Returns the total count below the given value- Parameters:
val
- the value- Returns:
- the total count below the given value
-
get25thPercentile
long get25thPercentile()Returns the value at the 25th percentile in the distribution.- Returns:
- the value at the 25th percentile
-
get75thPercentile
long get75thPercentile()Returns the value at the 75th percentile in the distribution.- Returns:
- the value at the 75th percentile
-
get90thPercentile
long get90thPercentile()Returns the value at the 90th percentile in the distribution.- Returns:
- the value at the 90th percentile
-
get95thPercentile
long get95thPercentile()Returns the value at the 95th percentile in the distribution.- Returns:
- the value at the 95th percentile
-
get98thPercentile
long get98thPercentile()Returns the value at the 98th percentile in the distribution.- Returns:
- the value at the 98th percentile
-
get99thPercentile
long get99thPercentile()Returns the value at the 99th percentile in the distribution.- Returns:
- the value at the 99th percentile
-
get999thPercentile
long get999thPercentile()Returns the value at the 99.9th percentile in the distribution.- Returns:
- the value at the 99.9th percentile
-
getMedian
long getMedian()Returns the median value in the distribution.- Returns:
- the median value
-
getMax
long getMax()Returns the highest value in the snapshot.- Returns:
- the highest value
-
getMean
long getMean()Returns the arithmetic mean of the values in the snapshot.- Returns:
- the arithmetic mean
-
getMin
long getMin()Returns the lowest value in the snapshot.- Returns:
- the lowest value
-