org.apache.accumulo.server.test.continuous
Class Histogram<T>
java.lang.Object
org.apache.accumulo.server.test.continuous.Histogram<T>
- All Implemented Interfaces:
- java.io.Serializable
public class Histogram<T>
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Field Summary |
protected java.util.HashMap<T,org.apache.accumulo.server.test.continuous.HistData<T>> |
counts
|
protected long |
sum
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sum
protected long sum
counts
protected java.util.HashMap<T,org.apache.accumulo.server.test.continuous.HistData<T>> counts
Histogram
public Histogram()
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 java.util.List<T> getKeysInCountSortedOrder()
print
public void print()
save
public void save(java.lang.String file)
throws java.io.IOException
- Throws:
java.io.IOException
getKeys
public java.util.Set<T> getKeys()
clear
public void clear()
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.