| org.geotools.caching.FeatureIndex
All known Subclasses: org.geotools.caching.impl.MemoryFeatureIndex,
FeatureIndex | public interface FeatureIndex extends FeatureSource(Code) | | Provides an indexed store where to keep features
on behalf of a DataCache.
Features are likely to be stored by ID, but
indexation can be used to speed the lookup of features in the cache.
Implementation will choose the indexation method that fits best with the purpose of the cache.
An index instance should store only one type of feature.
author: Christophe Rousson, SoC 2007, CRG-ULAVAL |
add | abstract public void add(Feature f)(Code) | | Store a Feature in the index.
Parameters: f - the feature to store |
clear | abstract public void clear()(Code) | | Delete all features from the index.
|
get | abstract public Feature get(String featureID)(Code) | | Get a feature by its ID.
Parameters: featureID - the id of the feature to retrieve. |
getView | abstract public FeatureSource getView(Query q) throws SchemaException(Code) | | Return a FeatureSource from where to get the features yielded by query q.
Parameters: q - the query defining the view, ie a selection of the features in the index. |
remove | abstract public void remove(String featureID)(Code) | | Delete a feature from the index.
Parameters: featureID - the id of the feature to remove. |
|
|