Class ExecutingStatementResource


  • @Path("/v1/statement/executing")
    public class ExecutingStatementResource
    extends Object
    • Method Detail

      • 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
                                    javax.ws.rs.core.UriInfo uriInfo,
                                    @Suspended
                                    javax.ws.rs.container.AsyncResponse asyncResponse)
      • getQuery

        protected io.prestosql.server.protocol.Query getQuery​(QueryId queryId,
                                                              String slug,
                                                              long token)
      • cancelQuery

        @ResourceSecurity(PUBLIC)
        @DELETE
        @Path("{queryId}/{slug}/{token}")
        @Produces("application/json")
        public javax.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)