presto-main/src/main/java/io/prestosql/operator/aggregation/ApproximateCountDistinctAggregation.java/ApproximateCountDistinctAggregation/input
class ApproximateCountDistinctAggregation:    @InputFunction
    public static void input(BooleanDistinctState state, @SqlType(StandardTypes.BOOLEAN) boolean value, @SqlType(StandardTypes.DOUBLE) double maxStandardError)
    {
        @SuppressWarnings("NumericCastThatLosesPrecision")
        byte newState = (byte) (state.getByte() | (value ? 1 : 2));
        state.setByte(newState);
    }