Allows querying for features by SQL expression.

Hierarchy (view full)

Constructors

Properties

_handles: Handles<unknown, ResourceHandle>

Do not directly reference this property. Use EventNames and EventTypes helpers from @arcgis/core/Evented.

providers: Collection<QueryProvider> = ...

Query providers that implement the query functionality. The collection will be populated with built-in Geocortex providers, however providers can be added or removed. The order is significant -- the first registered provider that is able to handle a given data/FeatureSource!FeatureSource will be used for that source (see tasks/query/QueryProvider!QueryProvider.isSupported).

Accessors

Methods

  • Called to perform cleanup. Subclasses should override this method rather than destroy() to perform custom cleanup.

    Returns Promise<void>

  • Called after normal initialization. Note: Child items are initialized before this is called.

    Returns Promise<void>

  • Counts the number of features that match the query criteria in a given feature source.

    Parameters

    • source: FeatureSource

      The source to search.

    • where: string

      An SQL expression to match against, e.g. "lastName='Smith'".

    • Optionaloptions: QueryOptions

      Additional options that affect the query.

    Returns Promise<CountResult>

  • A clean-up function that should get called whenever the item is disposed of.

    Returns Promise<void>

  • Determines whether this service is able to query the given source, i.e. whether there is at least one registered provider for that source.

    Parameters

    Returns boolean

  • Queries the given feature sources provided in the query definitions for features that match the query criteria.

    Parameters

    Returns AsyncIterable<Feature, any, any>

  • Queries a given feature source for features that match the query criteria.

    Parameters

    • source: FeatureSource

      The source to query.

    • where: string

      An SQL expression to match against, e.g. "lastName='Smith'".

    • Optionaloptions: QueryOptions

      Additional options that affect the query.

    Returns AsyncIterable<Feature, any, any>