use of org.apache.geode.management.internal.cli.domain.DataCommandRequest in project geode by apache.
the class DataCommandFunctionWithPDXJUnitTest method getTableFromQuery.
private TabularResultData getTableFromQuery(String query) {
DataCommandRequest request = new DataCommandRequest();
request.setQuery(query);
DataCommandResult result = new DataCommandFunction().select(request);
CompositeResultData r = result.toSelectCommandResult();
return r.retrieveSectionByIndex(0).retrieveTableByIndex(0);
}
Aggregations