org.apache.kafka.common.metrics.stats
Class Histogram.ConstantBinScheme

java.lang.Object
  extended by org.apache.kafka.common.metrics.stats.Histogram.ConstantBinScheme
All Implemented Interfaces:
Histogram.BinScheme
Enclosing class:
Histogram

public static class Histogram.ConstantBinScheme
extends java.lang.Object
implements Histogram.BinScheme


Constructor Summary
Histogram.ConstantBinScheme(int bins, double min, double max)
           
 
Method Summary
 int bins()
           
 double fromBin(int b)
           
 int toBin(double x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Histogram.ConstantBinScheme

public Histogram.ConstantBinScheme(int bins,
                                   double min,
                                   double max)
Method Detail

bins

public int bins()
Specified by:
bins in interface Histogram.BinScheme

fromBin

public double fromBin(int b)
Specified by:
fromBin in interface Histogram.BinScheme

toBin

public int toBin(double x)
Specified by:
toBin in interface Histogram.BinScheme