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 HistogramVisual
asVisual()
Returns a visual representation of a histogram object.void
copyFrom(Histogram other)
boolean
equals(Object o)
Histogram
fold(Histogram h)
static Histogram
fromBytes(byte[] bytes)
static Histogram
fromBytes(ByteBuffer buf)
int
hashCode()
void
offer(float d)
byte[]
toBytes()
String
toString()
-
-
-
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)
-
-