public interface FeatureIndex extends CollectionListener
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.
Modifier and Type | Method and Description |
---|---|
Collection |
find(Object key)
Find all the Features within this index using a key.
|
SimpleFeature |
findFirst(Object key)
Find the first Feature using the given key.
|
Iterator |
getFeatures()
Gets an "in order" Iterator of the Features as indexed.
|
collectionChanged
Iterator getFeatures()
Collection find(Object key) throws IllegalArgumentException
key
- A key to look up the Features with.IllegalArgumentException
- If the key is incompatable with this index.SimpleFeature findFirst(Object key) throws IllegalArgumentException
key
- A key to look up the Feature with.IllegalArgumentException
- If the key is incompatable with this index.Copyright © 1996–2019 Geotools. All rights reserved.