org.geotools.index.quadtree
Class LazySearchCollection

Object
  extended by AbstractCollection<Data>
      extended by LazySearchCollection
All Implemented Interfaces:
Iterable<Data>, Collection<Data>, CloseableCollection<Data>

public class LazySearchCollection
extends AbstractCollection<Data>
implements CloseableCollection<Data>

A collection that will open and close the QuadTree and find the next id in the index.

Author:
Jesse
Module:
modules/plugin/shapefile (gt-shapefile.jar)

Constructor Summary
LazySearchCollection(QuadTree tree, Envelope bounds)
           
 
Method Summary
 void close()
          Close the collection so it cleans up its resources
 void closeIterator(Iterator<Data> iter)
          Close the collection so it cleans up its resources
 boolean isEmpty()
           
 Iterator<Data> iterator()
           
 int size()
           
 
Methods inherited from class AbstractCollection
add, addAll, clear, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface Collection
add, addAll, clear, contains, containsAll, equals, hashCode, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

LazySearchCollection

public LazySearchCollection(QuadTree tree,
                            Envelope bounds)
Method Detail

iterator

public Iterator<Data> iterator()
Specified by:
iterator in interface Iterable<Data>
Specified by:
iterator in interface Collection<Data>
Specified by:
iterator in class AbstractCollection<Data>

size

public int size()
Specified by:
size in interface Collection<Data>
Specified by:
size in class AbstractCollection<Data>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<Data>
Overrides:
isEmpty in class AbstractCollection<Data>

close

public void close()
Description copied from interface: CloseableCollection
Close the collection so it cleans up its resources

Specified by:
close in interface CloseableCollection<Data>

closeIterator

public void closeIterator(Iterator<Data> iter)
                   throws IOException
Description copied from interface: CloseableCollection
Close the collection so it cleans up its resources

Specified by:
closeIterator in interface CloseableCollection<Data>
Throws:
IOException


Copyright © 1996-2010 Geotools. All Rights Reserved.