Examples of CategoryIsEmptyPredicate


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

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

  }

  @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
Copyright © 2018 www.massapi.com. 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.