Class PagedDataStructure<T>
- java.lang.Object
-
- org.neo4j.graphalgo.core.utils.paged.PagedDataStructure<T>
-
- Direct Known Subclasses:
PagedAtomicDoubleArray
,PagedAtomicIntegerArray
,PagedLongStack
public class PagedDataStructure<T> extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
capacity()
Return the capacity of this data structure.protected int
numPages(long capacity)
long
release()
long
size()
Return the size of this data structure.
-
-
-
Method Detail
-
size
public long size()
Return the size of this data structure. Indices up tosize
have been filled with data.
-
capacity
public final long capacity()
Return the capacity of this data structure. Not all indices up to this value may have sensible data, but it can be safely written up to this index (exclusive).
-
release
public long release()
-
numPages
protected int numPages(long capacity)
-
-