private void addFieldsToQuery(Request request, Query query) {
    //Partial response
    for (Map.Entry<String, TemporalInfo> entry : request.getFields().entrySet()) {
      // Iterate over map and add props/temporalInfo
      String propertyId = entry.getKey();
      query.addProperty(propertyId, entry.getValue());
    }
  }
Add partial response fields to the provided query.

@param request  the current request
@param query    the associated query
ambari-server/src/main/java/org/apache/ambari/server/api/handlers/ReadHandler.java