Class OLazyWrapperIterator<T>
java.lang.Object
com.orientechnologies.orient.core.iterator.OLazyWrapperIterator<T>
- All Implemented Interfaces:
OResettable,OSizeable,OAutoConvertToRecord,Iterable<T>,Iterator<T>
- Direct Known Subclasses:
OEdgeIterator,OrientEdgeIterator,OrientVertexIterator
public abstract class OLazyWrapperIterator<T>
extends Object
implements OAutoConvertToRecord, Iterator<T>, Iterable<T>, OResettable, OSizeable
Iterator that created wrapped objects during browsing.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final Iterator<?> protected Objectprotected Tprotected OIdentifiableprotected final int -
Constructor Summary
ConstructorsConstructorDescriptionOLazyWrapperIterator(Iterator<?> iterator) OLazyWrapperIterator(Iterator<?> iterator, int iSize, Object iOriginalValue) -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanabstract TcreateGraphElement(Object iObject) abstract booleangetGraphElementRecord(Object iObject) booleanhasNext()booleaniterator()next()voidremove()voidreset()voidsetAutoConvertToRecord(boolean convertToRecord) intsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
iterator
-
nextRecord
-
nextElement
-
size
protected final int size -
autoConvertToRecord
protected boolean autoConvertToRecord -
multiValue
-
-
Constructor Details
-
OLazyWrapperIterator
-
OLazyWrapperIterator
-
-
Method Details
-
filter
-
canUseMultiValueDirectly
public abstract boolean canUseMultiValueDirectly() -
createGraphElement
-
getGraphElementRecord
-
iterator
-
size
public int size() -
reset
public void reset()- Specified by:
resetin interfaceOResettable
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
setAutoConvertToRecord
public void setAutoConvertToRecord(boolean convertToRecord) - Specified by:
setAutoConvertToRecordin interfaceOAutoConvertToRecord
-
isAutoConvertToRecord
public boolean isAutoConvertToRecord()- Specified by:
isAutoConvertToRecordin interfaceOAutoConvertToRecord
-
getMultiValue
-