Package io.trino.operator
Class SyntheticAddress
java.lang.Object
io.trino.operator.SyntheticAddress
Methods for creating and decoding synthetic addresses.
A synthetic address is a physical position within an array of Slices. The address is encoded
as a long with the high 32 bits containing the index of the slice in the array and the low 32
bits containing an offset within the slice.
-
Method Summary
Modifier and TypeMethodDescriptionstatic intdecodePosition(long sliceAddress) static intdecodeSliceIndex(long sliceAddress) static longencodeSyntheticAddress(int sliceIndex, int sliceOffset)
-
Method Details
-
encodeSyntheticAddress
public static long encodeSyntheticAddress(int sliceIndex, int sliceOffset) -
decodeSliceIndex
public static int decodeSliceIndex(long sliceAddress) -
decodePosition
public static int decodePosition(long sliceAddress)
-