use of io.vertigo.dynamox.search.dsl.model.DslBlockQuery in project vertigo by KleeGroup.
the class DslMultiQueryRule method handle.
/**
* {@inheritDoc}
*/
@Override
protected DslBlockQuery handle(final List<Object> parsing) {
final String preQuery = (String) parsing.get(0);
final List<DslQuery> queryDefinitions = new ArrayList<>();
final String postQuery = (String) parsing.get(4);
final List<PegChoice> manyQueries = (List<PegChoice>) parsing.get(2);
for (final PegChoice item : manyQueries) {
queryDefinitions.add((DslQuery) item.getValue());
}
return new DslBlockQuery(preQuery, queryDefinitions, postQuery);
}
Aggregations