presto-main/src/main/java/io/prestosql/operator/aggregation/BooleanAndAggregation.java/BooleanAndAggregation/booleanAnd
class BooleanAndAggregation:    @InputFunction
    public static void booleanAnd(@AggregationState TriStateBooleanState state, @SqlType(StandardTypes.BOOLEAN) boolean value)
    {
        // if the value is false, the result is false
        if (!value) {
            state.setByte(FALSE_VALUE);
        }
        else {
            // if the current value is unset, set result to true
            if (state.getByte() == NULL_VALUE) {
                state.setByte(TRUE_VALUE);
            }
        }
    }