public Query build() {
      validate();
      String filter = createFilter();
      updateControls();
      return new Query(filter, controls);
    }
Builds an instance of {@link Query}.
@return configured directory service query
service/src/java/org/apache/hive/service/auth/ldap/Query.java