public Predicate getPredicate() {
    return predicate;
  }
Get the compiled host predicate for the host group.

@return the compiled host predicate or null if no predicate was specified
ambari-server/src/main/java/org/apache/ambari/server/topology/HostGroupInfo.java