Class DoubleMeanHolder
- java.lang.Object
-
- org.apache.druid.query.aggregation.mean.DoubleMeanHolder
-
public class DoubleMeanHolder extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDoubleMeanHolder.Serializer
-
Field Summary
Fields Modifier and Type Field Description static Comparator<DoubleMeanHolder>COMPARATORstatic intMAX_INTERMEDIATE_SIZE
-
Constructor Summary
Constructors Constructor Description DoubleMeanHolder(double sum, long count)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static DoubleMeanHolderfromBytes(byte[] data)static DoubleMeanHolderget(ByteBuffer buf, int position)inthashCode()static voidinit(ByteBuffer buf, int position)doublemean()byte[]toBytes()voidupdate(double sum)static voidupdate(ByteBuffer buf, int position, double sum)static voidupdate(ByteBuffer buf, int position, DoubleMeanHolder other)DoubleMeanHolderupdate(DoubleMeanHolder other)
-
-
-
Field Detail
-
MAX_INTERMEDIATE_SIZE
public static final int MAX_INTERMEDIATE_SIZE
- See Also:
- Constant Field Values
-
COMPARATOR
public static final Comparator<DoubleMeanHolder> COMPARATOR
-
-
Method Detail
-
update
public void update(double sum)
-
update
public DoubleMeanHolder update(DoubleMeanHolder other)
-
mean
public double mean()
-
toBytes
public byte[] toBytes()
-
fromBytes
public static DoubleMeanHolder fromBytes(byte[] data)
-
init
public static void init(ByteBuffer buf, int position)
-
update
public static void update(ByteBuffer buf, int position, double sum)
-
update
public static void update(ByteBuffer buf, int position, DoubleMeanHolder other)
-
get
public static DoubleMeanHolder get(ByteBuffer buf, int position)
-
-