| org.geotools.caching.DataCache
All known Subclasses: org.geotools.caching.impl.InMemoryDataCache, org.geotools.caching.impl.AbstractDataCache,
DataCache | public interface DataCache extends DataStore(Code) | | a DataCache is a DataStore that takes its features from another DataStore,
and tries to remember them in order to leverage subsequent related queries.
This is more of a marker interface, as a DataCache should behave in the same manner
as the source DataStore, but hopefully faster ...
author: Christophe Rousson, SoC 2007, CRG-ULAVAL |
Method Summary | |
abstract public void | clear() Reset the cache,
so it does not remember any of the features that were stored. | abstract public void | flush() Cause the cache to write back any of dirty features it may contain. | abstract public long | getHits() Provide a simple statistic of how many times
the cache was queried in place of the source DataStore. |
clear | abstract public void clear()(Code) | | Reset the cache,
so it does not remember any of the features that were stored.
|
flush | abstract public void flush() throws IllegalStateException(Code) | | Cause the cache to write back any of dirty features it may contain.
Could be better in a subinterface for async read-write caches.
|
getHits | abstract public long getHits()(Code) | | Provide a simple statistic of how many times
the cache was queried in place of the source DataStore.
Probably not useful.
|
|
|