Class ObjectsIterator
java.lang.Object
com.sparsity.sparksee.gdb.ObjectsIterator
- All Implemented Interfaces:
Closeable, AutoCloseable, Iterator<Long>
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the ObjectsIterator instance.booleanhasNext()Gets if there are more elements to traverse.booleanisClosed()Gets if ObjectsIterator instance has been closed or not.next()See nextObject().longGets the next element.voidremove()Operation not supported.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Method Details
-
next
-
nextObject
public long nextObject()Gets the next element. -
isClosed
public boolean isClosed()Gets if ObjectsIterator instance has been closed or not.- Returns:
- TRUE if the ObjectsIterator instance has been closed, FALSE otherwise.
- See Also:
-
hasNext
-
close
public void close()Closes the ObjectsIterator instance.It must be called to ensure the integrity of all data.
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
remove
-