
public class OIndexChangesWrapper extends Object implements OIndexCursor
If such situation is detected any call to any method throws OIndexIsRebuildingException
OIndexAbstract.getRebuildVersion()| Modifier and Type | Field and Description |
|---|---|
protected OIndexCursor |
delegate |
protected long |
indexRebuildVersion |
protected OIndex<?> |
source |
| Constructor and Description |
|---|
OIndexChangesWrapper(OIndex<?> source,
OIndexCursor delegate,
long indexRebuildVersion) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
OIdentifiable |
next() |
Map.Entry<Object,OIdentifiable> |
nextEntry()
Returns nextEntry element in subset of index data which should be iterated by given cursor.
|
void |
remove() |
void |
setPrefetchSize(int prefetchSize)
Set number of records to fetch for the next call to next() or nextEntry().
|
protected void |
throwRebuildException() |
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.
|
static OIndexCursor |
wrap(OIndex<?> source,
OIndexCursor cursor,
long indexRebuildVersion)
Wraps courser only if it is not already wrapped.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected final OIndex<?> source
protected final OIndexCursor delegate
protected final long indexRebuildVersion
public OIndexChangesWrapper(OIndex<?> source, OIndexCursor delegate, long indexRebuildVersion)
public static OIndexCursor wrap(OIndex<?> source, OIndexCursor cursor, long indexRebuildVersion)
source - Index which is used to create given cursor.cursor - Cursor to wrap.indexRebuildVersion - Rebuild version of index before cursor was created.OIndex.getRebuildVersion()public void remove()
remove in interface Iterator<OIdentifiable>public Map.Entry<Object,OIdentifiable> nextEntry()
nextEntry in interface OIndexCursornull if all data are
iterated.public Set<OIdentifiable> toValues()
toValues in interface OIndexCursorpublic Set<Map.Entry<Object,OIdentifiable>> toEntries()
toEntries in interface OIndexCursorpublic Set<Object> toKeys()
toKeys in interface OIndexCursorpublic void setPrefetchSize(int prefetchSize)
setPrefetchSize in interface OIndexCursorprefetchSize - Number of records to prefetch. -1 = prefetch using default settings.public boolean hasNext()
hasNext in interface Iterator<OIdentifiable>public OIdentifiable next()
next in interface Iterator<OIdentifiable>protected void throwRebuildException()
Copyright © 2009–2025 OrientDB. All rights reserved.