use of com.yahoo.search.grouping.GroupingRequest in project vespa by vespa-engine.
the class VespaSerializerTestCase method newGroupingRequest.
private static void newGroupingRequest(Query query, GroupingOperation grouping, Continuation... continuations) {
GroupingRequest request = GroupingRequest.newInstance(query);
request.setRootOperation(grouping);
request.continuations().addAll(Arrays.asList(continuations));
}
use of com.yahoo.search.grouping.GroupingRequest in project vespa by vespa-engine.
the class VespaSerializer method serialize.
public static String serialize(Query query) {
StringBuilder out = new StringBuilder();
serialize(query.getModel().getQueryTree().getRoot(), out);
for (GroupingRequest request : GroupingRequest.getRequests(query)) {
out.append(" | ");
serialize(request, out);
}
return out.toString();
}
Aggregations