Class CachingFeatureCollection

java.lang.Object
com.vividsolutions.jump.feature.FeatureCollectionWrapper
com.vividsolutions.jump.workbench.model.cache.CachingFeatureCollection
All Implemented Interfaces:
FeatureCollection, Iterable<Feature>

public class CachingFeatureCollection extends FeatureCollectionWrapper
Caches features to prevent unnecessary queries. Useful for wrapping database-backed FeatureCollections. All calls are delegated to the cache, except for calls to query(envelope).iterator() where (1) the envelope is not within the cache envelope, and (2) the call is made in a non-GUI thread.