All Implemented Interfaces:
NamedWriteable, Writeable, PostAnalysisPlanVerificationAware, Resolvable, ToAggregator

public class CountApproximate extends AggregateFunction implements ToAggregator
Used exclusively in the query approximation plan.

Counts values by summing doubles, so that intermediate state is DataType.DOUBLE. This avoids round-off errors when sample correction divides by the sample probability on data nodes — the corrected value stays in floating point and is only rounded to the target integer type on the coordinator.