Package io.trino.server
Class PagesResponseWriter
java.lang.Object
io.trino.server.PagesResponseWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<List<io.airlift.slice.Slice>>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize(List<io.airlift.slice.Slice> serializedPages, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) voidwriteTo(List<io.airlift.slice.Slice> serializedPages, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream output)
-
Field Details
-
SERIALIZED_PAGES_MAGIC
public static final int SERIALIZED_PAGES_MAGIC- See Also:
-
-
Constructor Details
-
PagesResponseWriter
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<List<io.airlift.slice.Slice>>
-
getSize
public long getSize(List<io.airlift.slice.Slice> serializedPages, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSizein interfacejakarta.ws.rs.ext.MessageBodyWriter<List<io.airlift.slice.Slice>>
-
writeTo
public void writeTo(List<io.airlift.slice.Slice> serializedPages, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream output) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<List<io.airlift.slice.Slice>>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-