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

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


  @Override
  public Predicate toPredicate(String prop, String val) throws InvalidQueryException {
    if (val == null) {
      throw new InvalidQueryException("Filter operator is missing a required right operand.");
    }
    return new FilterPredicate(prop, val);
  }
View Full Code Here


    assertEquals("FilterOperator", new FilterOperator().getName());
  }

  @Test
  public void testToPredicate() throws Exception {
    assertEquals(new FilterPredicate("p1", ".*"),
                 new FilterOperator().toPredicate("p1", ".*"));
  }
View Full Code Here

TOP

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

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.