Class Histogram
java.lang.Object
org.apache.druid.query.aggregation.Histogram
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
breaks
protected float[] breaks -
bins
protected long[] bins -
count
protected transient long count -
min
protected float min -
max
protected float max
-
-
Constructor Details
-
Histogram
public Histogram(float[] breaks) -
Histogram
public Histogram(float[] breaks, long[] bins, float min, float max) -
Histogram
-
-
Method Details
-
copyFrom
-
offer
public void offer(float d) -
fold
-
equals
-
hashCode
public int hashCode() -
toBytes
public byte[] toBytes() -
asVisual
Returns a visual representation of a histogram object. Initially returns an array of just the min. and max. values but can also support the addition of quantiles.- Returns:
- a visual representation of this histogram
-
fromBytes
-
fromBytes
-
toString
-