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 void
close()
Releases the reference to the underlying array so that it might be garbage collected.boolean
next()
Try to load the next page and return the success of this load.void
setPages(Array[] pages)
void
setPages(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:HugeCursor
Try to load the next page and return the success of this load. Once the method returnsfalse
, this method will never returntrue
again until the cursor is reset. The cursor behavior is not defined and might be unusable and throw exceptions after this method returnsfalse
.- Specified by:
next
in 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:HugeCursor
Releases 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:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in classHugeCursor<Array>
-
-