@Path(value="/") public class ExecutingStatementResource extends Object
| Constructor and Description |
|---|
ExecutingStatementResource(QueryManager queryManager,
ExchangeClientSupplier exchangeClientSupplier,
BlockEncodingSerde blockEncodingSerde,
io.airlift.concurrent.BoundedExecutor responseExecutor,
ScheduledExecutorService timeoutExecutor) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
cancelQuery(QueryId queryId,
String slug,
long token) |
protected io.prestosql.server.protocol.Query |
getQuery(QueryId queryId,
String slug) |
void |
getQueryResults(QueryId queryId,
String slug,
long token,
io.airlift.units.Duration maxWait,
io.airlift.units.DataSize targetResultSize,
String proto,
javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.container.AsyncResponse asyncResponse) |
@Inject public ExecutingStatementResource(QueryManager queryManager, ExchangeClientSupplier exchangeClientSupplier, BlockEncodingSerde blockEncodingSerde, io.airlift.concurrent.BoundedExecutor responseExecutor, ScheduledExecutorService timeoutExecutor)
@GET
@Path(value="/v1/statement/executing/{queryId}/{slug}/{token}")
@Produces(value="application/json")
public void getQueryResults(@PathParam(value="queryId")
QueryId queryId,
@PathParam(value="slug")
String slug,
@PathParam(value="token")
long token,
@QueryParam(value="maxWait")
io.airlift.units.Duration maxWait,
@QueryParam(value="targetResultSize")
io.airlift.units.DataSize targetResultSize,
@HeaderParam(value="X-Forwarded-Proto")
String proto,
@Context
javax.ws.rs.core.UriInfo uriInfo,
@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse)
Copyright © 2012–2019. All rights reserved.