org.apache.cassandra.utils
Class EstimatedHistogram

java.lang.Object
  extended by org.apache.cassandra.utils.EstimatedHistogram

public class EstimatedHistogram
extends java.lang.Object


Nested Class Summary
static class EstimatedHistogram.EstimatedHistogramSerializer
           
 
Field Summary
static EstimatedHistogram.EstimatedHistogramSerializer serializer
           
 
Constructor Summary
EstimatedHistogram()
           
EstimatedHistogram(int bucketCount)
           
EstimatedHistogram(long[] bucketData)
           
EstimatedHistogram(long[] offsets, long[] bucketData)
           
 
Method Summary
 void add(long n)
           
 long[] get(boolean reset)
           
 long[] getBucketOffsets()
           
 long max()
           
 long median()
           
 long min()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serializer

public static EstimatedHistogram.EstimatedHistogramSerializer serializer
Constructor Detail

EstimatedHistogram

public EstimatedHistogram()

EstimatedHistogram

public EstimatedHistogram(int bucketCount)

EstimatedHistogram

public EstimatedHistogram(long[] bucketData)

EstimatedHistogram

public EstimatedHistogram(long[] offsets,
                          long[] bucketData)
Method Detail

getBucketOffsets

public long[] getBucketOffsets()

add

public void add(long n)

get

public long[] get(boolean reset)

min

public long min()

max

public long max()

median

public long median()


Copyright © 2011 The Apache Software Foundation