Search in sources :

Example 6 with QueryLogicTransformer

use of datawave.webservice.query.logic.QueryLogicTransformer in project datawave by NationalSecurityAgency.

the class CompositeQueryLogicTransformer method createResponse.

@Override
public BaseQueryResponse createResponse(List<Object> resultList) {
    BaseQueryResponse result = null;
    for (QueryLogicTransformer t : delegates) {
        if (t instanceof AbstractQueryLogicTransformer) {
            AbstractQueryLogicTransformer a = (AbstractQueryLogicTransformer) t;
            try {
                log.trace("createResponse List<Object>");
                result = a.createResponse(resultList);
            } catch (Exception e) {
                log.warn("Error calling createResponse on delegate, continuing...", e);
            }
        }
    }
    return result;
}
Also used : AbstractQueryLogicTransformer(datawave.webservice.query.logic.AbstractQueryLogicTransformer) BaseQueryResponse(datawave.webservice.result.BaseQueryResponse) AbstractQueryLogicTransformer(datawave.webservice.query.logic.AbstractQueryLogicTransformer) QueryLogicTransformer(datawave.webservice.query.logic.QueryLogicTransformer) QueryException(datawave.webservice.query.exception.QueryException)

Aggregations

QueryLogicTransformer (datawave.webservice.query.logic.QueryLogicTransformer)6 QueryException (datawave.webservice.query.exception.QueryException)4 ResultsPage (datawave.webservice.query.cache.ResultsPage)2 AbstractQueryLogicTransformer (datawave.webservice.query.logic.AbstractQueryLogicTransformer)2 BaseQueryResponse (datawave.webservice.result.BaseQueryResponse)2 BaseResponse (datawave.webservice.result.BaseResponse)2 Timed (com.codahale.metrics.annotation.Timed)1 UniqueFields (datawave.query.attributes.UniqueFields)1 DatawavePrincipal (datawave.security.authorization.DatawavePrincipal)1 TraceStopwatch (datawave.util.time.TraceStopwatch)1 BadRequestException (datawave.webservice.common.exception.BadRequestException)1 DatawaveWebApplicationException (datawave.webservice.common.exception.DatawaveWebApplicationException)1 NoResultsException (datawave.webservice.common.exception.NoResultsException)1 UnauthorizedException (datawave.webservice.common.exception.UnauthorizedException)1 Query (datawave.webservice.query.Query)1 QueryImpl (datawave.webservice.query.QueryImpl)1 DashboardSummary (datawave.webservice.query.dashboard.DashboardSummary)1 BadRequestQueryException (datawave.webservice.query.exception.BadRequestQueryException)1 NoResultsQueryException (datawave.webservice.query.exception.NoResultsQueryException)1 NotFoundQueryException (datawave.webservice.query.exception.NotFoundQueryException)1