public abstract class QueryResultPusher extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
QueryResultPusher.ResultsWriter |
class |
QueryResultPusher.StreamingHttpResponseAccumulator |
static interface |
QueryResultPusher.Writer |
| Constructor and Description |
|---|
QueryResultPusher(javax.servlet.http.HttpServletRequest request,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
ResponseContextConfig responseContextConfig,
DruidNode selfNode,
QueryResource.QueryMetricCounter counter,
String queryId,
javax.ws.rs.core.MediaType contentType,
Map<String,String> extraHeaders) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
push()
Pushes results out.
|
abstract QueryResultPusher.ResultsWriter |
start()
Builds a ResultsWriter to start the lifecycle of the QueryResultPusher.
|
abstract void |
writeException(Exception e,
OutputStream out) |
public QueryResultPusher(javax.servlet.http.HttpServletRequest request,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
ResponseContextConfig responseContextConfig,
DruidNode selfNode,
QueryResource.QueryMetricCounter counter,
String queryId,
javax.ws.rs.core.MediaType contentType,
Map<String,String> extraHeaders)
public abstract QueryResultPusher.ResultsWriter start()
This response must not be null. The job of this ResultsWriter is largely to provide lifecycle management to the query running and reporting, so this object must never be null.
This start() method should do as little work as possible, it should really just make the ResultsWriter and return.
public abstract void writeException(Exception e, OutputStream out) throws IOException
IOException@Nullable public javax.ws.rs.core.Response push()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.