Class RawValues


  • public final class RawValues
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long combineIntInt​(int head, int tail)
      shifts head into the most significant 4 bytes of the long and places the tail in the least significant bytes
      static long combineIntInt​(org.neo4j.graphdb.Direction direction, int head, int tail)  
      static int getHead​(long combinedValue)
      get the head value
      static int getTail​(long combinedValue)
      get the tail value
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • combineIntInt

        public static long combineIntInt​(int head,
                                         int tail)
        shifts head into the most significant 4 bytes of the long and places the tail in the least significant bytes
        Parameters:
        head - an arbitrary int value
        tail - an arbitrary int value
        Returns:
        combination of head and tail
      • combineIntInt

        public static long combineIntInt​(org.neo4j.graphdb.Direction direction,
                                         int head,
                                         int tail)
      • getHead

        public static int getHead​(long combinedValue)
        get the head value
        Parameters:
        combinedValue - a value built of 2 ints
        Returns:
        the most significant 4 bytes as int
      • getTail

        public static int getTail​(long combinedValue)
        get the tail value
        Parameters:
        combinedValue - a value built of 2 ints
        Returns:
        the least significant 4 bytes as int