Search in sources :

Example 6 with ChunkedResponse

use of com.questdb.net.http.ChunkedResponse in project questdb by bluestreak01.

the class QueryHandler method handle.

@Override
public void handle(IOContext context) throws IOException {
    QueryHandlerContext ctx = localContext.get(context);
    if (ctx == null) {
        localContext.set(context, ctx = new QueryHandlerContext(context.getFd(), context.getServerConfiguration().getDbCyclesBeforeCancel()));
    }
    ChunkedResponse r = context.chunkedResponse();
    if (ctx.parseUrl(r, context.request)) {
        ctx.compileQuery(r, factory, cacheMisses, cacheHits);
        resume(context);
    }
}
Also used : ChunkedResponse(com.questdb.net.http.ChunkedResponse)

Aggregations

ChunkedResponse (com.questdb.net.http.ChunkedResponse)6 ResponseContentBufferTooSmallException (com.questdb.ex.ResponseContentBufferTooSmallException)3 RecordColumnMetadata (com.questdb.common.RecordColumnMetadata)2