Package org.neo4j.graphalgo.core.utils
Class RawValues
- java.lang.Object
-
- org.neo4j.graphalgo.core.utils.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 bytesstatic long
combineIntInt(org.neo4j.graphdb.Direction direction, int head, int tail)
static int
getHead(long combinedValue)
get the head valuestatic int
getTail(long combinedValue)
get the tail value
-
-
-
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 valuetail
- 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
-
-