Class 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 Detail

      • encodeSyntheticAddress

        public static long encodeSyntheticAddress​(int sliceIndex,
                                                  int sliceOffset)
      • decodeSliceIndex

        public static int decodeSliceIndex​(long sliceAddress)
      • decodePosition

        public static int decodePosition​(long sliceAddress)