Package io.trino.operator
Class SyntheticAddress
- java.lang.Object
-
- io.trino.operator.SyntheticAddress
-
public final class SyntheticAddress extends Object
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intdecodePosition(long sliceAddress)static intdecodeSliceIndex(long sliceAddress)static longencodeSyntheticAddress(int sliceIndex, int sliceOffset)
-