Class OIndexAbstractCursor
java.lang.Object
com.orientechnologies.orient.core.index.OIndexAbstractCursor
- All Implemented Interfaces:
OIndexCursor,Iterator<OIdentifiable>
- Direct Known Subclasses:
OIndexCursorStream
- Since:
- 4/24/14
- Author:
- Andrey Lomakin (a.lomakin-at-orientdb.com)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanhasNext()next()voidremove()voidsetPrefetchSize(int prefetchSize) Set number of records to fetch for the next call to next() or nextEntry().Accumulates and returns all entries of index inside of data subset of cursor.toKeys()Accumulates and returns all keys of index inside of data subset of cursor.toValues()Accumulates and returns all values of index inside of data subset of cursor.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemainingMethods inherited from interface com.orientechnologies.orient.core.index.OIndexCursor
nextEntry
-
Field Details
-
prefetchSize
protected int prefetchSize
-
-
Constructor Details
-
OIndexAbstractCursor
public OIndexAbstractCursor()
-
-
Method Details
-
toValues
Description copied from interface:OIndexCursorAccumulates and returns all values of index inside of data subset of cursor.- Specified by:
toValuesin interfaceOIndexCursor- Returns:
- all values of index inside of data subset of cursor.
-
toEntries
Description copied from interface:OIndexCursorAccumulates and returns all entries of index inside of data subset of cursor.- Specified by:
toEntriesin interfaceOIndexCursor- Returns:
- all entries of index inside of data subset of cursor.
-
toKeys
Description copied from interface:OIndexCursorAccumulates and returns all keys of index inside of data subset of cursor.- Specified by:
toKeysin interfaceOIndexCursor- Returns:
- all keys of index inside of data subset of cursor.
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<OIdentifiable>
-
next
- Specified by:
nextin interfaceIterator<OIdentifiable>
-
remove
public void remove()- Specified by:
removein interfaceIterator<OIdentifiable>
-
getPrefetchSize
public int getPrefetchSize() -
setPrefetchSize
public void setPrefetchSize(int prefetchSize) Description copied from interface:OIndexCursorSet number of records to fetch for the next call to next() or nextEntry().- Specified by:
setPrefetchSizein interfaceOIndexCursor- Parameters:
prefetchSize- Number of records to prefetch. -1 = prefetch using default settings.
-