code: public GroupOptions addGroupByQuery(Query query) {
  
  		Assert.notNull(query, "Query for grouping must not be null.");
  		groupByQuery.add(query);
  		return this;
  	}
docs: Adds a group request for a {@link Query} result.
  
  @param query
  @return