public interface FeatureCache extends DataCache
FeatureSet
s. First time that a FeatureStore
have to retrieve
data from a FeatureStoreProvider
can save the FeatureSet
in
the cache with its envelope. Next time that the store has to access to a envelope
contained in the previous envelope can retrieve the features directly
from the cache and it is not necessary to retrieve data from the provider.
The cache supports different scales and createsModifier and Type | Method and Description |
---|---|
void |
addFeatures(FeatureSet featureSet,
FeatureStore featureStore)
Add a set of features contained in a envelope for a concrete scale.
|
void |
delete(double scale)
Delete all the features for a concrete scale.
|
FeatureSet |
getFeatureSet(Envelope envelope,
double scale)
Return a feature set form a concrete envelope and a scale.
|
void delete(double scale) throws DataException
scale
- The scale.DataException
void addFeatures(FeatureSet featureSet, FeatureStore featureStore) throws DataException
featureSet
- The feature set retrieved from the server.featureStore
- DataException
FeatureSet getFeatureSet(Envelope envelope, double scale) throws DataException
envelope
- The envelope.scale
- The scale.DataException