Package org.neo4j.gds.core.utils.paged
Class PagedLongStack
- java.lang.Object
-
- org.neo4j.gds.core.utils.paged.PagedDataStructure<long[]>
-
- org.neo4j.gds.core.utils.paged.PagedLongStack
-
public class PagedLongStack extends PagedDataStructure<long[]>
-
-
Constructor Summary
Constructors Constructor Description PagedLongStack(long initialSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
isEmpty()
static long
memoryEstimation(long size)
long
peek()
long
pop()
void
push(long value)
long
release()
long
size()
Return the size of this data structure.-
Methods inherited from class org.neo4j.gds.core.utils.paged.PagedDataStructure
capacity, numPages
-
-
-
-
Method Detail
-
memoryEstimation
public static long memoryEstimation(long size)
-
clear
public void clear()
-
push
public void push(long value)
-
pop
public long pop()
-
peek
public long peek()
-
isEmpty
public boolean isEmpty()
-
size
public long size()
Description copied from class:PagedDataStructure
Return the size of this data structure. Indices up tosize
have been filled with data.- Overrides:
size
in classPagedDataStructure<long[]>
-
release
public long release()
- Overrides:
release
in classPagedDataStructure<long[]>
-
-