public interface OIndexCursor extends Iterator<OIdentifiable>
Contract of cursor is simple it iterates in some subset of index data till it reaches it's
borders in such case nextEntry()
returns null
.
Cursor is created as result of index query method such as com.orientechnologies.orient.core.index.OIndex#streamEntriesBetween(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, remove
Map.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–2020 OrientDB. All rights reserved.