Class DistinctCountULLValueAggregator
- java.lang.Object
-
- org.apache.pinot.segment.local.aggregator.DistinctCountULLValueAggregator
-
- All Implemented Interfaces:
ValueAggregator<Object,com.dynatrace.hash4j.distinctcount.UltraLogLog>
public class DistinctCountULLValueAggregator extends Object implements ValueAggregator<Object,com.dynatrace.hash4j.distinctcount.UltraLogLog>
-
-
Field Summary
Fields Modifier and Type Field Description static FieldSpec.DataTypeAGGREGATED_VALUE_TYPE
-
Constructor Summary
Constructors Constructor Description DistinctCountULLValueAggregator(List<ExpressionContext> arguments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.dynatrace.hash4j.distinctcount.UltraLogLogapplyAggregatedValue(com.dynatrace.hash4j.distinctcount.UltraLogLog value, com.dynatrace.hash4j.distinctcount.UltraLogLog aggregatedValue)Applies an aggregated value to the current aggregated value.com.dynatrace.hash4j.distinctcount.UltraLogLogapplyRawValue(com.dynatrace.hash4j.distinctcount.UltraLogLog value, Object rawValue)Applies a raw value to the current aggregated value.com.dynatrace.hash4j.distinctcount.UltraLogLogcloneAggregatedValue(com.dynatrace.hash4j.distinctcount.UltraLogLog value)Clones an aggregated value.com.dynatrace.hash4j.distinctcount.UltraLogLogdeserializeAggregatedValue(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.dynatrace.hash4j.distinctcount.UltraLogLoggetInitialAggregatedValue(Object rawValue)Returns the initial aggregated value.intgetMaxAggregatedValueByteSize()Returns the maximum size in bytes of the aggregated values seen so far.byte[]serializeAggregatedValue(com.dynatrace.hash4j.distinctcount.UltraLogLog value)Serializes an aggregated value into a byte array.
-
-
-
Field Detail
-
AGGREGATED_VALUE_TYPE
public static final FieldSpec.DataType AGGREGATED_VALUE_TYPE
-
-
Constructor Detail
-
DistinctCountULLValueAggregator
public DistinctCountULLValueAggregator(List<ExpressionContext> arguments)
-
-
Method Detail
-
getAggregationType
public AggregationFunctionType getAggregationType()
Description copied from interface:ValueAggregatorReturns the type of the aggregation.- Specified by:
getAggregationTypein interfaceValueAggregator<Object,com.dynatrace.hash4j.distinctcount.UltraLogLog>
-
getAggregatedValueType
public FieldSpec.DataType getAggregatedValueType()
Description copied from interface:ValueAggregatorReturns the data type of the aggregated value.- Specified by:
getAggregatedValueTypein interfaceValueAggregator<Object,com.dynatrace.hash4j.distinctcount.UltraLogLog>
-
getInitialAggregatedValue
public com.dynatrace.hash4j.distinctcount.UltraLogLog getInitialAggregatedValue(Object rawValue)
Description copied from interface:ValueAggregatorReturns the initial aggregated value.- Specified by:
getInitialAggregatedValuein interfaceValueAggregator<Object,com.dynatrace.hash4j.distinctcount.UltraLogLog>
-
applyRawValue
public com.dynatrace.hash4j.distinctcount.UltraLogLog applyRawValue(com.dynatrace.hash4j.distinctcount.UltraLogLog 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.dynatrace.hash4j.distinctcount.UltraLogLog>
-
applyAggregatedValue
public com.dynatrace.hash4j.distinctcount.UltraLogLog applyAggregatedValue(com.dynatrace.hash4j.distinctcount.UltraLogLog value, com.dynatrace.hash4j.distinctcount.UltraLogLog 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.dynatrace.hash4j.distinctcount.UltraLogLog>
-
cloneAggregatedValue
public com.dynatrace.hash4j.distinctcount.UltraLogLog cloneAggregatedValue(com.dynatrace.hash4j.distinctcount.UltraLogLog value)
Description copied from interface:ValueAggregatorClones an aggregated value.- Specified by:
cloneAggregatedValuein interfaceValueAggregator<Object,com.dynatrace.hash4j.distinctcount.UltraLogLog>
-
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.dynatrace.hash4j.distinctcount.UltraLogLog>
-
serializeAggregatedValue
public byte[] serializeAggregatedValue(com.dynatrace.hash4j.distinctcount.UltraLogLog value)
Description copied from interface:ValueAggregatorSerializes an aggregated value into a byte array.- Specified by:
serializeAggregatedValuein interfaceValueAggregator<Object,com.dynatrace.hash4j.distinctcount.UltraLogLog>
-
deserializeAggregatedValue
public com.dynatrace.hash4j.distinctcount.UltraLogLog deserializeAggregatedValue(byte[] bytes)
Description copied from interface:ValueAggregatorDe-serializes an aggregated value from a byte array.- Specified by:
deserializeAggregatedValuein interfaceValueAggregator<Object,com.dynatrace.hash4j.distinctcount.UltraLogLog>
-
-