Class OLazyRecordIterator
java.lang.Object
com.orientechnologies.orient.core.db.record.OLazyRecordIterator
- All Implemented Interfaces:
OLazyIterator<OIdentifiable>,OResettable,Iterator<OIdentifiable>
public class OLazyRecordIterator
extends Object
implements OLazyIterator<OIdentifiable>, OResettable
Lazy implementation of Iterator that load the records only when accessed. It keep also track of
changes to the source record avoiding to call setDirty() by hand.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Constructor Summary
ConstructorsConstructorDescriptionOLazyRecordIterator(ORecordElement iSourceRecord, Iterator<? extends OIdentifiable> iIterator, boolean iConvertToRecord) OLazyRecordIterator(Iterable<? extends OIdentifiable> iSource, boolean iConvertToRecord) OLazyRecordIterator(Iterator<? extends OIdentifiable> iIterator, boolean iConvertToRecord) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
OLazyRecordIterator
-
OLazyRecordIterator
public OLazyRecordIterator(ORecordElement iSourceRecord, Iterator<? extends OIdentifiable> iIterator, boolean iConvertToRecord) -
OLazyRecordIterator
-
-
Method Details
-
next
- Specified by:
nextin interfaceIterator<OIdentifiable>
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<OIdentifiable>
-
update
- Specified by:
updatein interfaceOLazyIterator<OIdentifiable>
-
remove
public void remove()- Specified by:
removein interfaceIterator<OIdentifiable>
-
reset
public void reset()- Specified by:
resetin interfaceOResettable
-