org.geotools.index.quadtree
Class LazySearchCollection
Object
AbstractCollection<Data>
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
Methods inherited from class AbstractCollection |
add, addAll, clear, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from interface Collection |
add, addAll, clear, contains, containsAll, equals, hashCode, remove, removeAll, retainAll, toArray, toArray |
LazySearchCollection
public LazySearchCollection(QuadTree tree,
Envelope bounds)
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-2009 Geotools. All Rights Reserved.