code: public AggregateResult aggregateQuery(TableDefinition tableDef, Aggregate aggParams) {
          checkServiceState();
          aggParams.execute();
          return aggParams.getResult();
      }
docs: Perform an aggregate query on the given table using the given query parameters.
  
  @param tableDef  {@link TableDefinition} of table to query.
  @param aggParams {@link Aggregate} containing query parameters.
  @return          {@link AggregateResult} containing search results.