org.geotools.feature
Interface IndexedFeatureCollection

All Superinterfaces:
java.util.Collection, Feature, FeatureCollection, FeatureResults, ResourceCollection
All Known Subinterfaces:
FeatureDocument

public interface IndexedFeatureCollection
extends FeatureCollection

An IndexedFeatureCollection extends the functionality of FeatureCollection by allowing FeatureIndex attachement.

Author:
Ian Schneider

Nested Class Summary
 
Nested classes inherited from class org.geotools.feature.Feature
Feature.NULL
 
Method Summary
 void addIndex(FeatureIndex index)
          Adds a FeatureIndex to this collection.
 FeatureIndex getIndex(java.lang.Class index)
          Look up an index by class.
 java.util.Iterator indices()
          Get an Iterator containing all of the indices in this collection.
 void removeAllIndices()
          Removes all indices from this collection.
 void removeIndex(FeatureIndex index)
          Removes the given FeatureIndex from the collection.
 
Methods inherited from interface org.geotools.feature.FeatureCollection
accepts, addListener, close, close, features, getFeatureType, getSchema, removeListener, sort, subCollection
 
Methods inherited from interface org.geotools.data.collection.ResourceCollection
iterator, purge
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface org.geotools.data.FeatureResults
collection, getBounds, getCount, reader
 
Methods inherited from interface org.geotools.feature.Feature
getAttribute, getAttribute, getAttributes, getBounds, getDefaultGeometry, getID, getNumberOfAttributes, getParent, setAttribute, setAttribute, setDefaultGeometry, setParent
 

Method Detail

addIndex

public void addIndex(FeatureIndex index)
Adds a FeatureIndex to this collection.

Parameters:
index - The FeatureIndex to add.
Throws:
java.lang.NullPointerException - If the index is null.

removeIndex

public void removeIndex(FeatureIndex index)
Removes the given FeatureIndex from the collection.

Parameters:
index - The FeatureIndex to remove.
Throws:
java.lang.NullPointerException - If the index is null.

removeAllIndices

public void removeAllIndices()
Removes all indices from this collection.


getIndex

public FeatureIndex getIndex(java.lang.Class index)
Look up an index by class.

Returns:
The FeatureIndex or null, if none exists.

indices

public java.util.Iterator indices()
Get an Iterator containing all of the indices in this collection.

Returns:
An Iterator of the indices.


Copyright © GeoTools. All Rights Reserved.