private boolean isBinaryComparison(ExpressionNode condition) {
        if ( ! (condition instanceof OperationNode binaryNode)) return false;
        if (binaryNode.operators().size() != 1) return false;
        if (binaryNode.operators().get(0) == Operator.largerOrEqual) return true;
        if (binaryNode.operators().get(0) == Operator.larger) return true;
        if (binaryNode.operators().get(0) == Operator.smallerOrEqual) return true;
        if (binaryNode.operators().get(0) == Operator.smaller) return true;
        if (binaryNode.operators().get(0) == Operator.approxEqual) return true;
        if (binaryNode.operators().get(0) == Operator.notEqual) return true;
        if (binaryNode.operators().get(0) == Operator.equal) return true;
        return false;
    }
Consumes the if condition and return the size of the values resulting, for convenience
searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/evaluation/gbdtoptimization/GBDTOptimizer.java