presto-main/src/main/java/io/prestosql/operator/aggregation/GenericAccumulatorFactory.java/GenericAccumulatorFactory/hasDistinct
class GenericAccumulatorFactory:    @Override
    public boolean hasDistinct()
    {
        return distinct;
    }