Class PercentileTDigestValueAggregator
- java.lang.Object
-
- org.apache.pinot.segment.local.aggregator.PercentileTDigestValueAggregator
-
- All Implemented Interfaces:
ValueAggregator<Object,com.tdunning.math.stats.TDigest>
public class PercentileTDigestValueAggregator extends Object implements ValueAggregator<Object,com.tdunning.math.stats.TDigest>
-
-
Field Summary
Fields Modifier and Type Field Description static FieldSpec.DataTypeAGGREGATED_VALUE_TYPEstatic intDEFAULT_TDIGEST_COMPRESSION
-
Constructor Summary
Constructors Constructor Description PercentileTDigestValueAggregator()
-
Method Summary
Modifier and Type Method Description com.tdunning.math.stats.TDigestapplyAggregatedValue(com.tdunning.math.stats.TDigest value, com.tdunning.math.stats.TDigest aggregatedValue)Applies an aggregated value to the current aggregated value.com.tdunning.math.stats.TDigestapplyRawValue(com.tdunning.math.stats.TDigest value, Object rawValue)Applies a raw value to the current aggregated value.com.tdunning.math.stats.TDigestcloneAggregatedValue(com.tdunning.math.stats.TDigest value)Clones an aggregated value.com.tdunning.math.stats.TDigestdeserializeAggregatedValue(byte[] bytes)De-serializes an aggregated value from a byte array.FieldSpec.DataTypegetAggregatedValueType()Returns the data type of the aggregated value.AggregationFunctionTypegetAggregationType()Returns the type of the aggregation.com.tdunning.math.stats.TDigestgetInitialAggregatedValue(Object rawValue)Returns the initial aggregated value.intgetMaxAggregatedValueByteSize()Returns the maximum size in bytes of the aggregated values seen so far.byte[]serializeAggregatedValue(com.tdunning.math.stats.TDigest value)Serializes an aggregated value into a byte array.
-
-
-
Field Detail
-
AGGREGATED_VALUE_TYPE
public static final FieldSpec.DataType AGGREGATED_VALUE_TYPE
-
DEFAULT_TDIGEST_COMPRESSION
public static final int DEFAULT_TDIGEST_COMPRESSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAggregationType
public AggregationFunctionType getAggregationType()
Description copied from interface:ValueAggregatorReturns the type of the aggregation.- Specified by:
getAggregationTypein interfaceValueAggregator<Object,com.tdunning.math.stats.TDigest>
-
getAggregatedValueType
public FieldSpec.DataType getAggregatedValueType()
Description copied from interface:ValueAggregatorReturns the data type of the aggregated value.- Specified by:
getAggregatedValueTypein interfaceValueAggregator<Object,com.tdunning.math.stats.TDigest>
-
getInitialAggregatedValue
public com.tdunning.math.stats.TDigest getInitialAggregatedValue(Object rawValue)
Description copied from interface:ValueAggregatorReturns the initial aggregated value.- Specified by:
getInitialAggregatedValuein interfaceValueAggregator<Object,com.tdunning.math.stats.TDigest>
-
applyRawValue
public com.tdunning.math.stats.TDigest applyRawValue(com.tdunning.math.stats.TDigest value, Object rawValue)Description copied from interface:ValueAggregatorApplies a raw value to the current aggregated value.NOTE: if value is mutable, will directly modify the value.
- Specified by:
applyRawValuein interfaceValueAggregator<Object,com.tdunning.math.stats.TDigest>
-
applyAggregatedValue
public com.tdunning.math.stats.TDigest applyAggregatedValue(com.tdunning.math.stats.TDigest value, com.tdunning.math.stats.TDigest aggregatedValue)Description copied from interface:ValueAggregatorApplies an aggregated value to the current aggregated value.NOTE: if value is mutable, will directly modify the value.
- Specified by:
applyAggregatedValuein interfaceValueAggregator<Object,com.tdunning.math.stats.TDigest>
-
cloneAggregatedValue
public com.tdunning.math.stats.TDigest cloneAggregatedValue(com.tdunning.math.stats.TDigest value)
Description copied from interface:ValueAggregatorClones an aggregated value.- Specified by:
cloneAggregatedValuein interfaceValueAggregator<Object,com.tdunning.math.stats.TDigest>
-
getMaxAggregatedValueByteSize
public int getMaxAggregatedValueByteSize()
Description copied from interface:ValueAggregatorReturns the maximum size in bytes of the aggregated values seen so far.- Specified by:
getMaxAggregatedValueByteSizein interfaceValueAggregator<Object,com.tdunning.math.stats.TDigest>
-
serializeAggregatedValue
public byte[] serializeAggregatedValue(com.tdunning.math.stats.TDigest value)
Description copied from interface:ValueAggregatorSerializes an aggregated value into a byte array.- Specified by:
serializeAggregatedValuein interfaceValueAggregator<Object,com.tdunning.math.stats.TDigest>
-
deserializeAggregatedValue
public com.tdunning.math.stats.TDigest deserializeAggregatedValue(byte[] bytes)
Description copied from interface:ValueAggregatorDe-serializes an aggregated value from a byte array.- Specified by:
deserializeAggregatedValuein interfaceValueAggregator<Object,com.tdunning.math.stats.TDigest>
-
-