Search in sources :

Example 6 with DataList

use of com.yahoo.processing.response.DataList in project vespa by vespa-engine.

the class AsyncDataProducer method process.

@SuppressWarnings("unchecked")
@Override
public Response process(Request request, Execution execution) {
    // Default implementation
    DataList dataList = ArrayDataList.createAsync(request);
    incomingData = dataList.incoming();
    return new Response(dataList);
}
Also used : Response(com.yahoo.processing.Response) ArrayDataList(com.yahoo.processing.response.ArrayDataList) DataList(com.yahoo.processing.response.DataList)

Aggregations

DataList (com.yahoo.processing.response.DataList)6 Test (org.junit.Test)5 Request (com.yahoo.processing.Request)3 Response (com.yahoo.processing.Response)3 ArrayDataList (com.yahoo.processing.response.ArrayDataList)3 Chain (com.yahoo.component.chain.Chain)2 Processor (com.yahoo.processing.Processor)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 ProcessorLibrary (com.yahoo.processing.test.ProcessorLibrary)1 Query (com.yahoo.search.Query)1 Result (com.yahoo.search.Result)1 Hit (com.yahoo.search.result.Hit)1 HitGroup (com.yahoo.search.result.HitGroup)1 Execution (com.yahoo.search.searchchain.Execution)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1