Class Histogram
- java.lang.Object
-
- org.apache.druid.query.aggregation.Histogram
-
public class Histogram extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HistogramVisualasVisual()Returns a visual representation of a histogram object.voidcopyFrom(Histogram other)booleanequals(Object o)Histogramfold(Histogram h)static HistogramfromBytes(byte[] bytes)static HistogramfromBytes(ByteBuffer buf)inthashCode()voidoffer(float d)byte[]toBytes()StringtoString()
-
-
-
Constructor Detail
-
Histogram
public Histogram(float[] breaks)
-
Histogram
public Histogram(float[] breaks, long[] bins, float min, float max)
-
Histogram
public Histogram(Histogram other)
-
-
Method Detail
-
copyFrom
public void copyFrom(Histogram other)
-
offer
public void offer(float d)
-
toBytes
public byte[] toBytes()
-
asVisual
public HistogramVisual 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
public static Histogram fromBytes(byte[] bytes)
-
fromBytes
public static Histogram fromBytes(ByteBuffer buf)
-
-