C# Class MapAround.Caching.SimpleCacheAccessor

Instances of this class provides access to the MapAround.Caching.SimpleSpatialDataCache and can be used by data providers as a tempopary storage of retrieved data. Spatial data providers must to clone features after extracting from cache for correct work in multithreading environment.
Inheritance: FeatureCollectionCacheAccessorBase
显示文件 Open project: gkrsu/maparound.core

Public Methods

Method Description
SimpleCacheAccessor ( SimpleSpatialDataCache cache ) : System

Initializes a new instance of Maparaound.Caching.SimpleCacheAccessor.

Protected Methods

Method Description
AddOrReplaceAttributeNames ( IList attributeNames ) : void

Saves an attribute list into cache.

AddOrReplaceCollection ( ICollection features, FeatureType featureType ) : void

Adds a collection to the cache or replaces it.

AddOrReplaceIndex ( ISpatialIndex index, FeatureType featureType ) : void

Adds a feature index to the cache or replaces it.

CheckKeyString ( string key ) : bool

Checks a value for validity when using as the access key.

ExtractAttributeNames ( ) : IList

Extracts an attribute list from cache.

ExtractCollection ( FeatureType featureType ) : Collection

Extracts a collection from cache.

ExtractIndex ( FeatureType featureType ) : ISpatialIndex

Extracts a feature index from cache.

Private Methods

Method Description
checkCache ( ) : void
featureTypeSubKey ( FeatureType featureType ) : string

Method Details

AddOrReplaceAttributeNames() protected method

Saves an attribute list into cache.
protected AddOrReplaceAttributeNames ( IList attributeNames ) : void
attributeNames IList Attribute list
return void

AddOrReplaceCollection() protected method

Adds a collection to the cache or replaces it.
protected AddOrReplaceCollection ( ICollection features, FeatureType featureType ) : void
features ICollection Feature collection
featureType FeatureType Feature type
return void

AddOrReplaceIndex() protected method

Adds a feature index to the cache or replaces it.
protected AddOrReplaceIndex ( ISpatialIndex index, FeatureType featureType ) : void
index ISpatialIndex Spatial index
featureType FeatureType Feature type
return void

CheckKeyString() protected method

Checks a value for validity when using as the access key.
protected CheckKeyString ( string key ) : bool
key string Value need to be checked
return bool

ExtractAttributeNames() protected method

Extracts an attribute list from cache.
protected ExtractAttributeNames ( ) : IList
return IList

ExtractCollection() protected method

Extracts a collection from cache.
protected ExtractCollection ( FeatureType featureType ) : Collection
featureType FeatureType Type of features in the collection
return Collection

ExtractIndex() protected method

Extracts a feature index from cache.
protected ExtractIndex ( FeatureType featureType ) : ISpatialIndex
featureType FeatureType Feature type
return ISpatialIndex

SimpleCacheAccessor() public method

Initializes a new instance of Maparaound.Caching.SimpleCacheAccessor.
public SimpleCacheAccessor ( SimpleSpatialDataCache cache ) : System
cache SimpleSpatialDataCache Maparaound.Caching.SimpleSpatialDataCache instance
return System