org.apache.accumulo.server.test.continuous
Class Histogram<T>

java.lang.Object
  extended by org.apache.accumulo.server.test.continuous.Histogram<T>
All Implemented Interfaces:
Serializable

public class Histogram<T>
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
protected  HashMap<T,org.apache.accumulo.server.test.continuous.HistData<T>> counts
           
protected  long sum
           
 
Constructor Summary
Histogram()
           
 
Method Summary
 void addPoint(T x)
           
 void addPoint(T x, long y)
           
 void clear()
           
 long getCount(T x)
           
 Set<T> getKeys()
           
 List<T> getKeysInCountSortedOrder()
           
 double getPercentage(T x)
           
 long getSum()
           
 void print()
           
 void save(String file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sum

protected long sum

counts

protected HashMap<T,org.apache.accumulo.server.test.continuous.HistData<T>> counts
Constructor Detail

Histogram

public Histogram()
Method Detail

addPoint

public void addPoint(T x)

addPoint

public void addPoint(T x,
                     long y)

getCount

public long getCount(T x)

getPercentage

public double getPercentage(T x)

getSum

public long getSum()

getKeysInCountSortedOrder

public List<T> getKeysInCountSortedOrder()

print

public void print()

save

public void save(String file)
          throws IOException
Throws:
IOException

getKeys

public Set<T> getKeys()

clear

public void clear()


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.