org.geotools.index.quadtree
Class LazySearchIterator

java.lang.Object
  extended by org.geotools.index.quadtree.LazySearchIterator
All Implemented Interfaces:
java.util.Iterator<Data>

public class LazySearchIterator
extends java.lang.Object
implements java.util.Iterator<Data>

Iterator that search the quad tree depth first. 32000 indices are cached at a time and each time a node is visited the indices are removed from the node so that the memory footprint is kept small. Note that if other iterators operate on the same tree then they can interfere with each other.

Author:
Jesse

Constructor Summary
LazySearchIterator(Node root, IndexFile indexfile, com.vividsolutions.jts.geom.Envelope bounds)
           
 
Method Summary
 void close()
           
 boolean hasNext()
           
 Data next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazySearchIterator

public LazySearchIterator(Node root,
                          IndexFile indexfile,
                          com.vividsolutions.jts.geom.Envelope bounds)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<Data>

next

public Data next()
Specified by:
next in interface java.util.Iterator<Data>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<Data>

close

public void close()
           throws StoreException
Throws:
StoreException


Copyright © 1996-2010 Geotools. All Rights Reserved.