Class IndexedAddressIterator

  • All Implemented Interfaces:
    AddressIterator, java.lang.Iterable<Address>, java.util.Iterator<Address>

    public class IndexedAddressIterator
    extends java.lang.Object
    implements AddressIterator
    Iterates over a FieldIterator; the field is the address but not the key; the column for the field must be indexed.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()
      Checks if there is a next address in the iteration.
      java.util.Iterator<Address> iterator()  
      Address next()
      Get the next address.
      void remove()  
      • Methods inherited from class java.lang.Object

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

        forEach, spliterator
      • Methods inherited from interface java.util.Iterator

    • Constructor Detail

      • IndexedAddressIterator

        public IndexedAddressIterator​(DBFieldIterator iter,
                                      AddressMap addrMap,
                                      int colIndex,
                                      ErrorHandler errHandler)
        iter - field iterator that is the address
        addrMap - address map to convert the longs to addresses
        colIndex - indexed column in the record
    • Method Detail

      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<Address>
        See Also:
      • iterator

        public java.util.Iterator<Address> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<Address>