Package io.trino.server.protocol
Class ExecutingStatementResource
java.lang.Object
io.trino.server.protocol.ExecutingStatementResource
-
Constructor Summary
ConstructorsConstructorDescriptionExecutingStatementResource(QueryManager queryManager, DirectExchangeClientSupplier directExchangeClientSupplier, ExchangeManagerRegistry exchangeManagerRegistry, BlockEncodingSerde blockEncodingSerde, QueryInfoUrlFactory queryInfoUrlTemplate, io.airlift.concurrent.BoundedExecutor responseExecutor, ScheduledExecutorService timeoutExecutor, PreparedStatementEncoder preparedStatementEncoder, ServerConfig serverConfig) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsecancelQuery(QueryId queryId, String slug, long token) protected io.trino.server.protocol.QueryvoidgetQueryResults(QueryId queryId, String slug, long token, io.airlift.units.Duration maxWait, io.airlift.units.DataSize targetResultSize, jakarta.ws.rs.core.UriInfo uriInfo, jakarta.ws.rs.container.AsyncResponse asyncResponse) voidpartialCancel(QueryId queryId, int stage, String slug, long token) voidstop()
-
Constructor Details
-
ExecutingStatementResource
@Inject public ExecutingStatementResource(QueryManager queryManager, DirectExchangeClientSupplier directExchangeClientSupplier, ExchangeManagerRegistry exchangeManagerRegistry, BlockEncodingSerde blockEncodingSerde, QueryInfoUrlFactory queryInfoUrlTemplate, io.airlift.concurrent.BoundedExecutor responseExecutor, ScheduledExecutorService timeoutExecutor, PreparedStatementEncoder preparedStatementEncoder, ServerConfig serverConfig)
-
-
Method Details
-
stop
@PreDestroy public void stop() -
getQueryResults
@ResourceSecurity(PUBLIC) @GET @Path("{queryId}/{slug}/{token}") @Produces("application/json") public void getQueryResults(@PathParam("queryId") QueryId queryId, @PathParam("slug") String slug, @PathParam("token") long token, @QueryParam("maxWait") io.airlift.units.Duration maxWait, @QueryParam("targetResultSize") io.airlift.units.DataSize targetResultSize, @Context jakarta.ws.rs.core.UriInfo uriInfo, @Suspended jakarta.ws.rs.container.AsyncResponse asyncResponse) -
getQuery
-
cancelQuery
@ResourceSecurity(PUBLIC) @DELETE @Path("{queryId}/{slug}/{token}") @Produces("application/json") public jakarta.ws.rs.core.Response cancelQuery(@PathParam("queryId") QueryId queryId, @PathParam("slug") String slug, @PathParam("token") long token) -
partialCancel
@ResourceSecurity(PUBLIC) @DELETE @Path("partialCancel/{queryId}/{stage}/{slug}/{token}") public void partialCancel(@PathParam("queryId") QueryId queryId, @PathParam("stage") int stage, @PathParam("slug") String slug, @PathParam("token") long token)
-