|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FeatureCache
Interface for a feature cache.
Method Summary | |
---|---|
void |
clear()
Removes all features from the feature cache. |
void |
dispose()
Disposes of the feature cache closing any open store connections. |
FeatureCollection |
get(com.vividsolutions.jts.geom.Envelope e)
Returns a feature collection of features within in the given envelope. |
FeatureCollection |
peek(com.vividsolutions.jts.geom.Envelope e)
Looks in the cache for the features within a given envelope. |
void |
put(FeatureCollection fc)
|
void |
put(FeatureCollection fc,
com.vividsolutions.jts.geom.Envelope e)
|
void |
remove(com.vividsolutions.jts.geom.Envelope e)
Removes all features from the cache that lie within the given envelope. |
Methods inherited from interface org.geotools.data.FeatureSource |
---|
addFeatureListener, getBounds, getBounds, getCount, getDataStore, getFeatures, getFeatures, getFeatures, getInfo, getName, getQueryCapabilities, getSchema, getSupportedHints, removeFeatureListener |
Method Detail |
---|
void clear()
void put(FeatureCollection fc, com.vividsolutions.jts.geom.Envelope e) throws CacheOversizedException
fc
- the feature collection to add to the cachee
- the envelope that encompasses the feature collection added
CacheOversizedException
void put(FeatureCollection fc) throws CacheOversizedException
fc
- the feature collection to add to the cache
CacheOversizedException
FeatureCollection get(com.vividsolutions.jts.geom.Envelope e) throws java.io.IOException
This function will look for features in the cache; if none are present it will then look into the underlying feature source for the features.
e
-
java.io.IOException
FeatureCollection peek(com.vividsolutions.jts.geom.Envelope e)
This function will only look in the cache for the features; it will not look in the underlying datastore.
e
-
void remove(com.vividsolutions.jts.geom.Envelope e)
e
- void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |