C# Class MapAround.Caching.FeatureCollectionCacheAccessorBase

Base class providing access to feature caching.
Inheritance: IFeatureCollectionCacheAccessor
Exibir arquivo Open project: gkrsu/maparound.core

Public Methods

Method Description
RestoreAttributeNames ( ) : IList

Restores a list of attribute names from the cache

RestoreFeatures ( FeatureType featureType ) : ICollection

Restores a feature collection from the cache.

RestoreFeaturesIndex ( FeatureType featureType ) : ISpatialIndex

Restores a spatial index containing features from cache.

SaveAttributeNames ( IList attributeNames ) : void

Saves a list of attribute names to the cache.

SaveFeatures ( ICollection features, FeatureType featureType ) : void

Saves a feature collection to the cache.

SaveFeaturesIndex ( ISpatialIndex index, FeatureType featureType ) : void

Saves a spatial index containing features to the cache.

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.

Method Details

AddOrReplaceAttributeNames() protected abstract method

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

AddOrReplaceCollection() protected abstract method

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

AddOrReplaceIndex() protected abstract method

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

CheckKeyString() protected abstract method

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

ExtractAttributeNames() protected abstract method

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

ExtractCollection() protected abstract method

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

ExtractIndex() protected abstract method

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

RestoreAttributeNames() public method

Restores a list of attribute names from the cache
public RestoreAttributeNames ( ) : IList
return IList

RestoreFeatures() public method

Restores a feature collection from the cache.
public RestoreFeatures ( FeatureType featureType ) : ICollection
featureType FeatureType Type of features
return ICollection

RestoreFeaturesIndex() public method

Restores a spatial index containing features from cache.
public RestoreFeaturesIndex ( FeatureType featureType ) : ISpatialIndex
featureType FeatureType Feature type
return ISpatialIndex

SaveAttributeNames() public method

Saves a list of attribute names to the cache.
public SaveAttributeNames ( IList attributeNames ) : void
attributeNames IList List of attribute names
return void

SaveFeatures() public method

Saves a feature collection to the cache.
public SaveFeatures ( ICollection features, FeatureType featureType ) : void
features ICollection Feature collection
featureType FeatureType Type of features
return void

SaveFeaturesIndex() public method

Saves a spatial index containing features to the cache.
public SaveFeaturesIndex ( ISpatialIndex index, FeatureType featureType ) : void
index ISpatialIndex Spatial index
featureType FeatureType Type of features in index
return void