|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An Index is built up around a FeatureCollection, using one of the attributes in the FeatureCollection as a comparable reference.
An object in a column can be any object, but must either be a java base-type Object (Integer, String, Character, etc.) or implement Comparable.
An Index built on such a column will sort its array of object references using FeatureComparator. Implement this to perform more complex Index building.
| Method Summary | |
java.util.Collection |
find(java.lang.Object key)
Find all the Features within this index using a key. |
Feature |
findFirst(java.lang.Object key)
Find the first Feature using the given key. |
java.util.Iterator |
getFeatures()
Gets an "in order" Iterator of the Features as indexed. |
| Methods inherited from interface org.geotools.feature.CollectionListener |
collectionChanged |
| Method Detail |
public java.util.Iterator getFeatures()
public java.util.Collection find(java.lang.Object key)
throws java.lang.IllegalArgumentException
key - A key to look up the Features with.
java.lang.IllegalArgumentException - If the key is incompatable with this index.
public Feature findFirst(java.lang.Object key)
throws java.lang.IllegalArgumentException
key - A key to look up the Feature with.
java.lang.IllegalArgumentException - If the key is incompatable with this index.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||