Package org.neo4j.gds.core.utils.paged
Class HugeCursor.PagedCursor<Array>
- java.lang.Object
-
- org.neo4j.gds.core.utils.paged.HugeCursor<Array>
-
- org.neo4j.gds.core.utils.paged.HugeCursor.PagedCursor<Array>
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Enclosing class:
- HugeCursor<Array>
public static final class HugeCursor.PagedCursor<Array> extends HugeCursor<Array>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.neo4j.gds.core.utils.paged.HugeCursor
HugeCursor.PagedCursor<Array>
-
-
Field Summary
-
Fields inherited from class org.neo4j.gds.core.utils.paged.HugeCursor
array, base, limit, offset
-
-
Constructor Summary
Constructors Constructor Description PagedCursor(long capacity, Array[] pages)PagedCursor(Array[] pages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Releases the reference to the underlying array so that it might be garbage collected.booleannext()Try to load the next page and return the success of this load.voidsetPages(Array[] pages)voidsetPages(Array[] pages, long capacity)
-
-
-
Method Detail
-
setPages
public void setPages(Array[] pages)
-
setPages
public void setPages(Array[] pages, long capacity)
-
next
public boolean next()
Description copied from class:HugeCursorTry to load the next page and return the success of this load. Once the method returnsfalse, this method will never returntrueagain until the cursor is reset. The cursor behavior is not defined and might be unusable and throw exceptions after this method returnsfalse.- Specified by:
nextin classHugeCursor<Array>- Returns:
- true, iff the cursor is still valid on contains new data; false if there is no more data.
-
close
public void close()
Description copied from class:HugeCursorReleases the reference to the underlying array so that it might be garbage collected. The cursor can never be used again after calling this method, doing so results in undefined behavior.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein classHugeCursor<Array>
-
-