Package org.apache.ambari.server.controller.predicate

Examples of org.apache.ambari.server.controller.predicate.CategoryIsEmptyPredicate


  @Override
  public Predicate toPredicate(String prop, String val) throws InvalidQueryException {
    if (val != null) {
      throw new InvalidQueryException("'isEmpty' operator shouldn't have a right operand but one exists: " + val);
    }
    return new CategoryIsEmptyPredicate(prop);
  }
View Full Code Here


  }

  @Test
  public void testToPredicate() throws InvalidQueryException {
    String prop = "prop";
    Predicate p = new CategoryIsEmptyPredicate(prop);

    assertEquals(p, new IsEmptyOperator().toPredicate(prop, null));
  }
View Full Code Here

TOP

Related Classes of org.apache.ambari.server.controller.predicate.CategoryIsEmptyPredicate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.