Class OIndexAbstractCursor

java.lang.Object
com.orientechnologies.orient.core.index.OIndexAbstractCursor
All Implemented Interfaces:
OIndexCursor, Iterator<OIdentifiable>
Direct Known Subclasses:
OIndexCursorStream

public abstract class OIndexAbstractCursor extends Object implements OIndexCursor
Since:
4/24/14
Author:
Andrey Lomakin (a.lomakin-at-orientdb.com)
  • Field Details

    • prefetchSize

      protected int prefetchSize
  • Constructor Details

    • OIndexAbstractCursor

      public OIndexAbstractCursor()
  • Method Details

    • toValues

      public Set<OIdentifiable> toValues()
      Description copied from interface: OIndexCursor
      Accumulates and returns all values of index inside of data subset of cursor.
      Specified by:
      toValues in interface OIndexCursor
      Returns:
      all values of index inside of data subset of cursor.
    • toEntries

      public Set<Map.Entry<Object,OIdentifiable>> toEntries()
      Description copied from interface: OIndexCursor
      Accumulates and returns all entries of index inside of data subset of cursor.
      Specified by:
      toEntries in interface OIndexCursor
      Returns:
      all entries of index inside of data subset of cursor.
    • toKeys

      public Set<Object> toKeys()
      Description copied from interface: OIndexCursor
      Accumulates and returns all keys of index inside of data subset of cursor.
      Specified by:
      toKeys in interface OIndexCursor
      Returns:
      all keys of index inside of data subset of cursor.
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<OIdentifiable>
    • next

      public OIdentifiable next()
      Specified by:
      next in interface Iterator<OIdentifiable>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<OIdentifiable>
    • getPrefetchSize

      public int getPrefetchSize()
    • setPrefetchSize

      public void setPrefetchSize(int prefetchSize)
      Description copied from interface: OIndexCursor
      Set number of records to fetch for the next call to next() or nextEntry().
      Specified by:
      setPrefetchSize in interface OIndexCursor
      Parameters:
      prefetchSize - Number of records to prefetch. -1 = prefetch using default settings.