
public interface OIndexCursor extends Iterator<OIdentifiable>
nextEntry() returns null.
Cursor is created as result of index query method such as
OIndex.iterateEntriesBetween(Object, boolean, Object, boolean, boolean) cursor
instance cannot be used at several threads simultaneously.| Modifier and Type | Method and Description |
|---|---|
Map.Entry<Object,OIdentifiable> |
nextEntry()
Returns nextEntry element in subset of index data which should be iterated by given cursor.
|
void |
setPrefetchSize(int prefetchSize)
Set number of records to fetch for the next call to next() or nextEntry().
|
Set<Map.Entry<Object,OIdentifiable>> |
toEntries()
Accumulates and returns all entries of index inside of data subset of cursor.
|
Set<Object> |
toKeys()
Accumulates and returns all keys of index inside of data subset of cursor.
|
Set<OIdentifiable> |
toValues()
Accumulates and returns all values of index inside of data subset of cursor.
|
forEachRemaining, hasNext, next, removeMap.Entry<Object,OIdentifiable> nextEntry()
null if all data are
iterated.Set<OIdentifiable> toValues()
Set<Map.Entry<Object,OIdentifiable>> toEntries()
Set<Object> toKeys()
void setPrefetchSize(int prefetchSize)
prefetchSize - Number of records to prefetch. -1 = prefetch using default settings.Copyright © 2009–2025 OrientDB. All rights reserved.