public abstract class OIndexAbstractCursor extends Object implements OIndexCursor
Modifier and Type | Field and Description |
---|---|
protected int |
prefetchSize |
Constructor and Description |
---|
OIndexAbstractCursor() |
Modifier and Type | Method and Description |
---|---|
int |
getPrefetchSize() |
boolean |
hasNext() |
OIdentifiable |
next() |
void |
remove() |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nextEntry
forEachRemaining
public Set<OIdentifiable> toValues()
OIndexCursor
toValues
in interface OIndexCursor
public Set<Map.Entry<Object,OIdentifiable>> toEntries()
OIndexCursor
toEntries
in interface OIndexCursor
public Set<Object> toKeys()
OIndexCursor
toKeys
in interface OIndexCursor
public boolean hasNext()
hasNext
in interface Iterator<OIdentifiable>
public OIdentifiable next()
next
in interface Iterator<OIdentifiable>
public void remove()
remove
in interface Iterator<OIdentifiable>
public int getPrefetchSize()
public void setPrefetchSize(int prefetchSize)
OIndexCursor
setPrefetchSize
in interface OIndexCursor
prefetchSize
- Number of records to prefetch. -1 = prefetch using default settings.Copyright © 2009–2020 OrientDB. All rights reserved.