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 Details

    • iterator

      protected final Iterator<?> iterator
    • nextRecord

      protected OIdentifiable nextRecord
    • nextElement

      protected T nextElement
    • size

      protected final int size
    • autoConvertToRecord

      protected boolean autoConvertToRecord
    • multiValue

      protected Object multiValue
  • Constructor Details

    • OLazyWrapperIterator

      public OLazyWrapperIterator(Iterator<?> iterator)
    • OLazyWrapperIterator

      public OLazyWrapperIterator(Iterator<?> iterator, int iSize, Object iOriginalValue)
  • Method Details

    • filter

      public abstract boolean filter(T iObject)
    • canUseMultiValueDirectly

      public abstract boolean canUseMultiValueDirectly()
    • createGraphElement

      public abstract T createGraphElement(Object iObject)
    • getGraphElementRecord

      public OIdentifiable getGraphElementRecord(Object iObject)
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T>
    • size

      public int size()
      Specified by:
      size in interface OSizeable
    • reset

      public void reset()
      Specified by:
      reset in interface OResettable
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • next

      public T next()
      Specified by:
      next in interface Iterator<T>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<T>
    • setAutoConvertToRecord

      public void setAutoConvertToRecord(boolean convertToRecord)
      Specified by:
      setAutoConvertToRecord in interface OAutoConvertToRecord
    • isAutoConvertToRecord

      public boolean isAutoConvertToRecord()
      Specified by:
      isAutoConvertToRecord in interface OAutoConvertToRecord
    • getMultiValue

      public Object getMultiValue()