Search in sources :

Example 1 with ArrayConceptQuery

use of com.bakdata.conquery.apiv1.query.ArrayConceptQuery in project conquery by bakdata.

the class RelExportGenerator method setInfos.

/**
 * Wraps the feature/outcome query with the corresponding info, if it is a feature or outcome
 * do generate a ColumnDescriptor later on.
 */
private static ArrayConceptQuery setInfos(ArrayConceptQuery arrayQuery, FeatureGroup group) {
    for (ConceptQuery childQueries : arrayQuery.getChildQueries()) {
        ResultInfoDecorator decorator = new ResultInfoDecorator(ImmutableClassToInstanceMap.of(FeatureGroup.class, group), childQueries.getRoot());
        childQueries.setRoot(decorator);
    }
    return arrayQuery;
}
Also used : FeatureGroup(com.bakdata.conquery.apiv1.forms.FeatureGroup) ConceptQuery(com.bakdata.conquery.apiv1.query.ConceptQuery) ArrayConceptQuery(com.bakdata.conquery.apiv1.query.ArrayConceptQuery) ResultInfoDecorator(com.bakdata.conquery.apiv1.query.concept.specific.ResultInfoDecorator)

Aggregations

FeatureGroup (com.bakdata.conquery.apiv1.forms.FeatureGroup)1 ArrayConceptQuery (com.bakdata.conquery.apiv1.query.ArrayConceptQuery)1 ConceptQuery (com.bakdata.conquery.apiv1.query.ConceptQuery)1 ResultInfoDecorator (com.bakdata.conquery.apiv1.query.concept.specific.ResultInfoDecorator)1