Package org.neo4j.gds.api
Interface AdjacencyList.MemoryInfo
-
- Enclosing interface:
- AdjacencyList
public static interface AdjacencyList.MemoryInfo
-
-
Field Summary
Fields Modifier and Type Field Description static AdjacencyList.MemoryInfo
EMPTY
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Optional<BlockStatistics>
blockStatistics()
A collection of histograms that record various statistics for block packing.static org.neo4j.gds.api.ImmutableMemoryInfo.Builder
builder(MemoryTracker memoryTracker)
java.util.OptionalLong
bytesOffHeap()
Number of bytes this adjacency list occupies off heap.java.util.OptionalLong
bytesOnHeap()
Number of bytes this adjacency list occupies on heap.default java.util.OptionalLong
bytesTotal()
Returns the total number of bytes occupied by this adjacency list, including both, on heap and off heap.ImmutableHistogram
headerAllocations()
Histogram that tracks the number of bytes used to store header information for a single adjacency list.ImmutableHistogram
headerBits()
Histogram that tracks the number of bits used to encode a block of target ids.ImmutableHistogram
heapAllocations()
Histogram that tracks heap allocations sizes during adjacency list construction.ImmutableHistogram
nativeAllocations()
Histogram that tracks native allocations sizes during adjacency list construction.long
pages()
The number of pages this adjacency list occupies.ImmutableHistogram
pageSizes()
Histogram that tracks pages sizes of an adjacency list.
-
-
-
Field Detail
-
EMPTY
static final AdjacencyList.MemoryInfo EMPTY
-
-
Method Detail
-
builder
static org.neo4j.gds.api.ImmutableMemoryInfo.Builder builder(MemoryTracker memoryTracker)
-
bytesTotal
default java.util.OptionalLong bytesTotal()
Returns the total number of bytes occupied by this adjacency list, including both, on heap and off heap.
-
pages
long pages()
The number of pages this adjacency list occupies.
-
bytesOnHeap
java.util.OptionalLong bytesOnHeap()
Number of bytes this adjacency list occupies on heap.- Returns:
- Number of bytes or empty if not accessible.
-
bytesOffHeap
java.util.OptionalLong bytesOffHeap()
Number of bytes this adjacency list occupies off heap.- Returns:
- Number of bytes or empty if not accessible.
-
heapAllocations
ImmutableHistogram heapAllocations()
Histogram that tracks heap allocations sizes during adjacency list construction. Each allocation is the number of bytes allocated for a single adjacency list.
-
nativeAllocations
ImmutableHistogram nativeAllocations()
Histogram that tracks native allocations sizes during adjacency list construction. Each allocation is the number of bytes allocated for a single adjacency list.
-
pageSizes
ImmutableHistogram pageSizes()
Histogram that tracks pages sizes of an adjacency list.
-
headerBits
ImmutableHistogram headerBits()
Histogram that tracks the number of bits used to encode a block of target ids.
-
headerAllocations
ImmutableHistogram headerAllocations()
Histogram that tracks the number of bytes used to store header information for a single adjacency list. That allocation is included in eitherheapAllocations()
ornativeAllocations()
.
-
blockStatistics
java.util.Optional<BlockStatistics> blockStatistics()
A collection of histograms that record various statistics for block packing.
-
-