Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FeatureStore

The FeatureStore class uses FeatureRetriever to manage feature caching and retrieval of features of a FeatureTypeDetails.

Hierarchy

  • FeatureStore

Index

Constructors

constructor

  • Parameters

    Returns FeatureStore

  • Parameters

    Returns FeatureStore

Properties

Private _featureIdField

_featureIdField: any

string.

Private _featureType

_featureType: any

Private _retriever

_retriever: any

featureRetriever

  • get featureRetriever(): FeatureRetriever
  • The featureRetriever property is a FeatureRetriever and it defines a method to get features of a specified featureType.

    Returns FeatureRetriever

featureType

  • get featureType(): FeatureTypeDetails
  • The featureType property of a FeatureStore is the FeatureTypeDetails of the features it manages.

    Returns FeatureTypeDetails

Methods

addFeaturesToCache

  • addFeaturesToCache(features: Feature[]): void
  • addFeaturesToCache(features: Feature[]): void
  • Add an array of Feature to the cache

    Parameters

    Returns void

  • Add an array of Feature to the cache

    Parameters

    • features: Feature[]

      an array of Feature.

    Returns void

clear

  • clear(): void
  • clear(): void
  • Clear the store's cache

    Returns void

  • Clear the store's cache

    Returns void

getCachedCount

  • getCachedCount(): number
  • getCachedCount(): number
  • Get a count of all the features in the cache

    Returns number

    the amount of features in cache as a number.

  • Get a count of all the features in the cache

    Returns number

    the amount of features in cache as a number.

getFeatures

  • getFeatures(featureIds: number[]): Promise<Feature[]>
  • getFeatures(featureIds: number[]): Promise<Feature[]>
  • Get an array of Feature from the cache and from the retriever adding to cache what is not already there

    Parameters

    • featureIds: number[]

    Returns Promise<Feature[]>

    a Q.Promise of an array of Feature.

  • Get an array of Feature from the cache and from the retriever adding to cache what is not already there

    Parameters

    • featureIds: number[]

    Returns Promise<Feature[]>

    a Q.Promise of an array of Feature.

getFeaturesFromCache

  • getFeaturesFromCache(featureIds: number[]): Feature[]
  • getFeaturesFromCache(featureIds: number[]): Feature[]
  • Get an array of Feature from the cache

    Parameters

    • featureIds: number[]

    Returns Feature[]

    an array of Feature.

  • Get an array of Feature from the cache

    Parameters

    • featureIds: number[]

    Returns Feature[]

    an array of Feature.