Package org.neo4j.gds.core.utils
Interface PageReordering.PageOrdering
-
- Enclosing class:
- PageReordering
public static interface PageReordering.PageOrdering
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description int[]
distinctOrdering()
Represents the order in which pages occur according to the offsets.int
length()
The actual array length ofreverseOrdering()
.long[]
pageOffsets()
Represents the start and end indexes within the offsets where a page starts or ends.int[]
reverseOrdering()
Represents the order of the indexes at which pages occur according to the offsets.default long[]
shrinkToFitPageOffsets()
default int[]
shrinkToFitReverseOrdering()
-
-
-
Method Detail
-
distinctOrdering
int[] distinctOrdering()
Represents the order in which pages occur according to the offsets. Only the first occurrence of a page is being recorded.
-
reverseOrdering
int[] reverseOrdering()
Represents the order of the indexes at which pages occur according to the offsets. Since a page can occur multiple times within a consecutive range of offsets, the index of it's first occurrence can be added multiple times. The size of this array can be larger than the total number of pages.
-
pageOffsets
long[] pageOffsets()
Represents the start and end indexes within the offsets where a page starts or ends. The length of this array is determined by the length ofreverseOrdering()
.
-
length
int length()
The actual array length ofreverseOrdering()
.
-
shrinkToFitReverseOrdering
@TestOnly default int[] shrinkToFitReverseOrdering()
-
shrinkToFitPageOffsets
@TestOnly default long[] shrinkToFitPageOffsets()
-
-