Class AvgPair
- java.lang.Object
-
- org.apache.pinot.segment.local.customobject.AvgPair
-
- All Implemented Interfaces:
Comparable<AvgPair>
public class AvgPair extends Object implements Comparable<AvgPair>
-
-
Constructor Summary
Constructors Constructor Description AvgPair(double sum, long count)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(double sum, long count)voidapply(AvgPair avgPair)intcompareTo(AvgPair avgPair)static AvgPairfromByteBuffer(ByteBuffer byteBuffer)static AvgPairfromBytes(byte[] bytes)longgetCount()doublegetSum()byte[]toBytes()
-
-
-
Method Detail
-
apply
public void apply(double sum, long count)
-
apply
public void apply(@Nonnull AvgPair avgPair)
-
getSum
public double getSum()
-
getCount
public long getCount()
-
toBytes
@Nonnull public byte[] toBytes()
-
fromBytes
@Nonnull public static AvgPair fromBytes(byte[] bytes)
-
fromByteBuffer
@Nonnull public static AvgPair fromByteBuffer(ByteBuffer byteBuffer)
-
compareTo
public int compareTo(@Nonnull AvgPair avgPair)- Specified by:
compareToin interfaceComparable<AvgPair>
-
-