Package org.neo4j.gds.core.utils.paged
Class PagedDataStructure<T>
- java.lang.Object
-
- org.neo4j.gds.core.utils.paged.PagedDataStructure<T>
-
- Direct Known Subclasses:
PagedAtomicIntegerArray,PagedLongStack
public class PagedDataStructure<T> extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcapacity()Return the capacity of this data structure.protected intnumPages(long capacity)longrelease()longsize()Return the size of this data structure.
-
-
-
Method Detail
-
size
public long size()
Return the size of this data structure. Indices up tosizehave 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)
-
-