public abstract static class BatchApproxCountDistinctAggFunctions.ApproxCountDistinctAggFunction<T> extends BuiltInAggregateFunction<Long,HllBuffer>
| Constructor and Description |
|---|
ApproxCountDistinctAggFunction(org.apache.flink.table.types.logical.LogicalType valueType) |
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate(HllBuffer buffer,
Object input) |
HllBuffer |
createAccumulator() |
org.apache.flink.table.types.DataType |
getAccumulatorDataType() |
List<org.apache.flink.table.types.DataType> |
getArgumentDataTypes() |
org.apache.flink.table.types.DataType |
getOutputDataType() |
Long |
getValue(HllBuffer buffer) |
void |
merge(HllBuffer buffer,
Iterable<HllBuffer> it) |
void |
resetAccumulator(HllBuffer buffer) |
getRequirements, getTypeInference, isDeterministicgetAccumulatorType, getResultTypepublic ApproxCountDistinctAggFunction(org.apache.flink.table.types.logical.LogicalType valueType)
public HllBuffer createAccumulator()
public void accumulate(HllBuffer buffer, Object input) throws Exception
Exceptionpublic void merge(HllBuffer buffer, Iterable<HllBuffer> it) throws Exception
Exceptionpublic void resetAccumulator(HllBuffer buffer)
public List<org.apache.flink.table.types.DataType> getArgumentDataTypes()
getArgumentDataTypes in class BuiltInAggregateFunction<Long,HllBuffer>public org.apache.flink.table.types.DataType getAccumulatorDataType()
getAccumulatorDataType in class BuiltInAggregateFunction<Long,HllBuffer>public org.apache.flink.table.types.DataType getOutputDataType()
getOutputDataType in class BuiltInAggregateFunction<Long,HllBuffer>Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.