Package io.trino.execution.buffer
Class PagesSerdeUtil
java.lang.Object
io.trino.execution.buffer.PagesSerdeUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longSpecial checksum value used to verify configuration consistency across nodes (all nodes need to have data integrity configured the same way). -
Method Summary
Modifier and TypeMethodDescriptionstatic longcalculateChecksum(List<io.airlift.slice.Slice> pages) static intgetSerializedPagePositionCount(io.airlift.slice.Slice serializedPage) static intgetSerializedPageUncompressedSizeInBytes(io.airlift.slice.Slice serializedPage) static booleanisSerializedPageCompressed(io.airlift.slice.Slice serializedPage) static booleanisSerializedPageEncrypted(io.airlift.slice.Slice serializedPage) readPages(PageDeserializer deserializer, InputStream inputStream) static io.airlift.slice.SlicereadSerializedPage(io.airlift.slice.Slice headerSlice, InputStream inputStream) static Iterator<io.airlift.slice.Slice> readSerializedPages(InputStream inputStream) static longwritePages(PageSerializer serializer, io.airlift.slice.SliceOutput sliceOutput, Page... pages) static longwritePages(PageSerializer serializer, io.airlift.slice.SliceOutput sliceOutput, Iterator<Page> pages)
-
Field Details
-
NO_CHECKSUM
public static final long NO_CHECKSUMSpecial checksum value used to verify configuration consistency across nodes (all nodes need to have data integrity configured the same way).- See Also:
-
-
Method Details
-
calculateChecksum
-
writePages
public static long writePages(PageSerializer serializer, io.airlift.slice.SliceOutput sliceOutput, Page... pages) -
writePages
public static long writePages(PageSerializer serializer, io.airlift.slice.SliceOutput sliceOutput, Iterator<Page> pages) -
readPages
-
getSerializedPagePositionCount
public static int getSerializedPagePositionCount(io.airlift.slice.Slice serializedPage) -
getSerializedPageUncompressedSizeInBytes
public static int getSerializedPageUncompressedSizeInBytes(io.airlift.slice.Slice serializedPage) -
isSerializedPageEncrypted
public static boolean isSerializedPageEncrypted(io.airlift.slice.Slice serializedPage) -
isSerializedPageCompressed
public static boolean isSerializedPageCompressed(io.airlift.slice.Slice serializedPage) -
readSerializedPages
-
readSerializedPage
public static io.airlift.slice.Slice readSerializedPage(io.airlift.slice.Slice headerSlice, InputStream inputStream) throws IOException - Throws:
IOException
-