Class CardinalityAggregator
java.lang.Object
org.apache.druid.query.aggregation.cardinality.CardinalityAggregator
- All Implemented Interfaces:
Closeable,AutoCloseable,Aggregator
-
Field Details
-
HASH_FUNCTION
public static final com.google.common.hash.HashFunction HASH_FUNCTION
-
-
Method Details
-
aggregate
public void aggregate()Description copied from interface:AggregatorPerforms aggregation.- Specified by:
aggregatein interfaceAggregator
-
get
- Specified by:
getin interfaceAggregator
-
getFloat
public float getFloat()- Specified by:
getFloatin interfaceAggregator
-
getLong
public long getLong()- Specified by:
getLongin interfaceAggregator
-
getDouble
public double getDouble()Description copied from interface:AggregatorThe default implementation castsAggregator.getFloat()to double. This default method is added to enable smooth backward compatibility, please re-implement it if your aggregators work with numeric double columns.- Specified by:
getDoublein interfaceAggregator
-
close
public void close()- Specified by:
closein interfaceAggregator- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-