Class SegmentResource
java.lang.Object
io.trino.server.protocol.spooling.SegmentResource
@Path("/v1/spooled/segments/{identifier}")
@ResourceSecurity(PUBLIC)
public class SegmentResource
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionSegmentResource(io.trino.spi.protocol.SpoolingManager spoolingManager, SpoolingConfig config, InternalNodeManager nodeManager) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responseacknowledge(String identifier, jakarta.ws.rs.core.HttpHeaders headers) jakarta.ws.rs.core.Responsedownload(jakarta.ws.rs.core.UriInfo uriInfo, String identifier, jakarta.ws.rs.core.HttpHeaders headers) static jakarta.ws.rs.core.UriBuilder
-
Constructor Details
-
SegmentResource
@Inject public SegmentResource(io.trino.spi.protocol.SpoolingManager spoolingManager, SpoolingConfig config, InternalNodeManager nodeManager)
-
-
Method Details
-
download
@GET @Produces("application/octet-stream") @ResourceSecurity(PUBLIC) public jakarta.ws.rs.core.Response download(@Context jakarta.ws.rs.core.UriInfo uriInfo, @PathParam("identifier") String identifier, @Context jakarta.ws.rs.core.HttpHeaders headers) throws IOException - Throws:
IOException
-
acknowledge
@DELETE @ResourceSecurity(PUBLIC) public jakarta.ws.rs.core.Response acknowledge(@PathParam("identifier") String identifier, @Context jakarta.ws.rs.core.HttpHeaders headers) throws IOException - Throws:
IOException
-
spooledSegmentUriBuilder
-
nextActiveNode
-