Interface Snapshot


@Private public interface Snapshot
A statictical sample of histogram values.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    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
    Returns the number of values in the snapshot.
    long
    Returns the total count below the given value
    long
    Returns the highest value in the snapshot.
    long
    Returns the arithmetic mean of the values in the snapshot.
    long
    Returns the median value in the distribution.
    long
    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

      long[] getQuantiles(double[] quantiles)
      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

      long getCountAtOrBelow(long val)
      Returns the total count below the given value
      Parameters:
      val - the value
      Returns:
      the total count below the given value
    • get25thPercentile

      Returns the value at the 25th percentile in the distribution.
      Returns:
      the value at the 25th percentile
    • get75thPercentile

      Returns the value at the 75th percentile in the distribution.
      Returns:
      the value at the 75th percentile
    • get90thPercentile

      Returns the value at the 90th percentile in the distribution.
      Returns:
      the value at the 90th percentile
    • get95thPercentile

      Returns the value at the 95th percentile in the distribution.
      Returns:
      the value at the 95th percentile
    • get98thPercentile

      Returns the value at the 98th percentile in the distribution.
      Returns:
      the value at the 98th percentile
    • get99thPercentile

      Returns the value at the 99th percentile in the distribution.
      Returns:
      the value at the 99th percentile
    • 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