Class MetricSampleQuantiles.SampleItem

java.lang.Object
org.apache.hadoop.metrics2.util.MetricSampleQuantiles.SampleItem
Enclosing class:
MetricSampleQuantiles

private static class MetricSampleQuantiles.SampleItem extends Object
Describes a measured value passed to the estimator, tracking additional metadata required by the CKMS algorithm.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    Difference between the item's greatest possible rank and lowest possible rank.
    private int
    Difference between the lowest possible rank of the previous item, and the lowest possible rank of this item.
    private final long
    Value of the sampled item (e.g.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SampleItem(long value, int lowerDelta, int delta)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • value

      private final long value
      Value of the sampled item (e.g. a measured latency value)
    • g

      private int g
      Difference between the lowest possible rank of the previous item, and the lowest possible rank of this item. The sum of the g of all previous items yields this item's lower bound.
    • delta

      private final int delta
      Difference between the item's greatest possible rank and lowest possible rank.
  • Constructor Details

    • SampleItem

      public SampleItem(long value, int lowerDelta, int delta)
  • Method Details