Class ReallyFlatIterator

  • All Implemented Interfaces:
    java.util.Iterator

    public class ReallyFlatIterator
    extends java.lang.Object
    implements java.util.Iterator
    An Iterator that flattens the contents of another Iterator. It expects the kind of contents produced by the ObjectStoreFlatOuterJoinsImpl.
    Author:
    Matthew Wakeling
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Iterator currentIterator  
      protected java.util.Iterator iter  
    • Constructor Summary

      Constructors 
      Constructor Description
      ReallyFlatIterator​(java.util.Iterator iter)
      Constructs a ReallyFlatIterator from another Iterator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()
      java.lang.Object next()
      void remove()
      This operation is not supported.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Field Detail

      • iter

        protected java.util.Iterator iter
      • currentIterator

        protected java.util.Iterator currentIterator
    • Constructor Detail

      • ReallyFlatIterator

        public ReallyFlatIterator​(java.util.Iterator iter)
        Constructs a ReallyFlatIterator from another Iterator. The act of iterating through this iterator will result in the provided Iterator being iterated.
        Parameters:
        iter - an Iterator to be followed in order
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator
      • next

        public java.lang.Object next()
        Specified by:
        next in interface java.util.Iterator
      • remove

        public void remove()
        This operation is not supported.
        Specified by:
        remove in interface java.util.Iterator