Class ObjectsIterator

java.lang.Object
com.sparsity.sparksee.gdb.ObjectsIterator
All Implemented Interfaces:
Closeable, AutoCloseable, Iterator<Long>

public class ObjectsIterator extends Object implements Closeable, Iterator<Long>
ObjectsIterator class.

Iterator to traverse all the object identifiers from an Objects instance.

Author:
Sparsity Technologies http://www.sparsity-technologies.com
  • Method Details

    • next

      public Long next()
      See nextObject().

      Specified by:
      next in interface Iterator<Long>
    • 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

      public boolean hasNext()
      Gets if there are more elements to traverse.

      Specified by:
      hasNext in interface Iterator<Long>
      Returns:
      TRUE if there are more elements to traverse, FALSE otherwise.
    • close

      public void close()
      Closes the ObjectsIterator instance.

      It must be called to ensure the integrity of all data.

      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • remove

      public void remove()
      Operation not supported.

      Specified by:
      remove in interface Iterator<Long>