C# Класс 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.
Наследование: FeatureCollectionCacheAccessorBase
Показать файл Открыть проект

Открытые методы

Метод Описание
SimpleCacheAccessor ( SimpleSpatialDataCache cache ) : System

Initializes a new instance of Maparaound.Caching.SimpleCacheAccessor.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
checkCache ( ) : void
featureTypeSubKey ( FeatureType featureType ) : string

Описание методов

AddOrReplaceAttributeNames() защищенный Метод

Saves an attribute list into cache.
protected AddOrReplaceAttributeNames ( IList attributeNames ) : void
attributeNames IList Attribute list
Результат void

AddOrReplaceCollection() защищенный Метод

Adds a collection to the cache or replaces it.
protected AddOrReplaceCollection ( ICollection features, FeatureType featureType ) : void
features ICollection Feature collection
featureType FeatureType Feature type
Результат void

AddOrReplaceIndex() защищенный Метод

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
Результат void

CheckKeyString() защищенный Метод

Checks a value for validity when using as the access key.
protected CheckKeyString ( string key ) : bool
key string Value need to be checked
Результат bool

ExtractAttributeNames() защищенный Метод

Extracts an attribute list from cache.
protected ExtractAttributeNames ( ) : IList
Результат IList

ExtractCollection() защищенный Метод

Extracts a collection from cache.
protected ExtractCollection ( FeatureType featureType ) : Collection
featureType FeatureType Type of features in the collection
Результат Collection

ExtractIndex() защищенный Метод

Extracts a feature index from cache.
protected ExtractIndex ( FeatureType featureType ) : ISpatialIndex
featureType FeatureType Feature type
Результат ISpatialIndex

SimpleCacheAccessor() публичный Метод

Initializes a new instance of Maparaound.Caching.SimpleCacheAccessor.
public SimpleCacheAccessor ( SimpleSpatialDataCache cache ) : System
cache SimpleSpatialDataCache Maparaound.Caching.SimpleSpatialDataCache instance
Результат System