@Override
  public Predicate toPredicate() throws InvalidQueryException {
    return ((LogicalOperator) getOperator()).
        toPredicate(getLeftOperand().toPredicate(), getRightOperand().toPredicate());
  }
Constructor.

@param op  the logical operator of the expression
ambari-server/src/main/java/org/apache/ambari/server/api/predicate/expressions/LogicalExpression.java