Package org.neo4j.graphalgo.core.huge
Class TransientAdjacencyList
- java.lang.Object
-
- org.neo4j.graphalgo.core.huge.TransientAdjacencyList
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,AdjacencyList
public final class TransientAdjacencyList extends java.lang.Object implements AdjacencyList
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TransientAdjacencyList.Cursor
static class
TransientAdjacencyList.DecompressingCursor
-
Field Summary
Fields Modifier and Type Field Description static long
PAGE_MASK
static int
PAGE_SHIFT
static int
PAGE_SIZE
-
Constructor Summary
Constructors Constructor Description TransientAdjacencyList(byte[][] pages)
-
Method Summary
-
-
-
Field Detail
-
PAGE_SHIFT
public static final int PAGE_SHIFT
- See Also:
- Constant Field Values
-
PAGE_SIZE
public static final int PAGE_SIZE
- See Also:
- Constant Field Values
-
PAGE_MASK
public static final long PAGE_MASK
- See Also:
- Constant Field Values
-
-
Method Detail
-
compressedMemoryEstimation
public static MemoryEstimation compressedMemoryEstimation(long avgDegree, long nodeCount)
-
compressedMemoryEstimation
public static MemoryEstimation compressedMemoryEstimation(boolean undirected)
-
compressedMemoryEstimation
public static MemoryEstimation compressedMemoryEstimation(RelationshipType relationshipType, boolean undirected)
-
uncompressedMemoryEstimation
public static MemoryEstimation uncompressedMemoryEstimation(boolean undirected)
-
uncompressedMemoryEstimation
public static MemoryEstimation uncompressedMemoryEstimation(RelationshipType relationshipType, boolean undirected)
-
degree
public int degree(long index)
- Specified by:
degree
in interfaceAdjacencyList
-
close
public void close()
- Specified by:
close
in interfaceAdjacencyList
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
rawCursor
public TransientAdjacencyList.Cursor rawCursor()
- Specified by:
rawCursor
in interfaceAdjacencyList
-
cursor
public TransientAdjacencyList.Cursor cursor(long offset)
- Specified by:
cursor
in interfaceAdjacencyList
-
rawDecompressingCursor
public TransientAdjacencyList.DecompressingCursor rawDecompressingCursor()
Description copied from interface:AdjacencyList
Returns a new, uninitialized delta cursor.- Specified by:
rawDecompressingCursor
in interfaceAdjacencyList
-
decompressingCursor
public TransientAdjacencyList.DecompressingCursor decompressingCursor(long offset)
Description copied from interface:AdjacencyList
Get a new cursor initialised on the given offset- Specified by:
decompressingCursor
in interfaceAdjacencyList
-
cursor
public static TransientAdjacencyList.Cursor cursor(TransientAdjacencyList.Cursor reuse, long offset)
Initialise the given cursor with the given offset
-
decompressingCursor
public static TransientAdjacencyList.DecompressingCursor decompressingCursor(TransientAdjacencyList.DecompressingCursor reuse, long offset)
Initialise the given cursor with the given offset
-
-