An implementation of Schema that directly mirrors the equivalent properties on Table.

Hierarchy (view full)

Constructors

Properties

_handles: Handles<unknown, ResourceHandle>
_primaryKeyField: string

A cache of the primary key field name used to speed up lookup.

_tableBindings: Map<keyof TableSchema,
    | "listMode"
    | "title"
    | "url"
    | "id"
    | "gdbVersion"
    | "destroy"
    | "@eventTypes"
    | "set"
    | "emit"
    | "hasEventListener"
    | "on"
    | "addHandles"
    | "hasHandles"
    | "removeHandles"
    | "watch"
    | "clone"
    | "fields"
    | "outFields"
    | "hasM"
    | "hasZ"
    | "popupTemplate"
    | "labelingInfo"
    | "renderer"
    | "opacity"
    | "spatialReference"
    | "mode"
    | "elevationInfo"
    | "visible"
    | "refreshInterval"
    | "labelsVisible"
    | "maxScale"
    | "popupEnabled"
    | "floorInfo"
    | "source"
    | "sourceJSON"
    | "objectIdField"
    | "geometryType"
    | "types"
    | "templates"
    | "orderBy"
    | "definitionExpression"
    | "minScale"
    | "timeInfo"
    | "featureReduction"
    | "globalIdField"
    | "createPopupTemplate"
    | "createQuery"
    | "getField"
    | "getFieldDomain"
    | "queryExtent"
    | "queryFeatureCount"
    | "queryFeatures"
    | "queryObjectIds"
    | "getAtOrigin"
    | "originOf"
    | "revertAllToOrigin"
    | "revertToOrigin"
    | "isFulfilled"
    | "isRejected"
    | "isResolved"
    | "when"
    | "cancelLoad"
    | "load"
    | "fullExtent"
    | "parent"
    | "persistenceEnabled"
    | "visibilityTimeExtent"
    | "createLayerView"
    | "fetchAttributionData"
    | "customParameters"
    | "blendMode"
    | "legendEnabled"
    | "apiKey"
    | "save"
    | "saveAs"
    | "portalItem"
    | "copyright"
    | "layerId"
    | "effect"
    | "queryAttributeBins"
    | "refresh"
    | "timeExtent"
    | "timeOffset"
    | "useViewTime"
    | "dateFieldsTimeZone"
    | "displayField"
    | "historicMoment"
    | "returnM"
    | "returnZ"
    | "displayFilterEnabled"
    | "displayFilterInfo"
    | "formTemplate"
    | "attributeTableTemplate"
    | "screenSizePerspectiveEnabled"
    | "trackInfo"
    | "featureEffect"
    | "typeIdField"
    | "editingEnabled"
    | "addAttachment"
    | "applyEdits"
    | "deleteAttachments"
    | "queryAttachments"
    | "queryRelatedFeatures"
    | "queryRelatedFeaturesCount"
    | "updateAttachment"
    | "queryTopFeatures"
    | "charts"
    | "dynamicDataSource"
    | "fieldConfigurations"
    | "createFieldConfigurations"
    | "getFeatureTitle"
    | "getFeatureType"
    | "getFieldAlias"
    | "getFieldConfiguration"
    | "queryTopFeatureCount"
    | "queryTopFeaturesExtent"
    | "queryTopObjectIds"> = ...

Maps schema properties to equivalent properties on the table.

TableExtension that this schema belongs to.

_watchHandles: ResourceHandle[] = []

A set of watch handles that get cleaned up when the class instance is destroyed.

@eventTypes: SchemaEvents

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

fieldExtensions: FieldExtensionCollection

The field extensions associated with each field of the schema.

A collection of Field objects describing each field in the schema.

Accessors

  • get displayField(): string
  • The name of the field containing the display name of the feature.

    Returns string

  • set displayField(value): void
  • Parameters

    • value: string

    Returns void

  • get geometryType(): GeometryType
  • The type of geometry. This property will be undefined if the data is not spatial.

    Returns GeometryType

  • set geometryType(value): void
  • The type of geometry. This property will be undefined if the data is not spatial.

    Parameters

    Returns void

  • get hasGeometry(): boolean
  • Whether the schema has spatial data.

    Returns boolean

  • get parent(): this
  • The parent settings that these settings will inherit from.

    Returns this

  • set parent(value): void
  • Parameters

    • value: this

    Returns void

  • get primaryKeyField(): string
  • The name of the field containing the feature's primary key (value that uniquely identifies a feature).

    Returns string

  • set primaryKeyField(value): void
  • Parameters

    • value: string

    Returns void

  • get spatialReference(): SpatialReference
  • The spatial reference of the schema. Can be defined using a well-known ID (WKID) or well-known text (WKT).

    Returns SpatialReference

  • set spatialReference(value): void
  • The spatial reference of the schema. Can be defined using a well-known ID (WKID) or well-known text (WKT).

    Parameters

    • value: SpatialReference

    Returns void

  • get timeZone(): string
  • The time zone that the data is stored in. The default is UTC.

    Returns string

  • set timeZone(value): void
  • Parameters

    • value: string

    Returns void

  • get typeIdField(): string
  • The name of the field holding the type ID or subtypes for the features.

    Returns string

  • set typeIdField(value): void
  • Parameters

    • value: string

    Returns void

  • get types(): Collection<FeatureType>
  • A collection of types or subtypes for the features.

    Returns Collection<FeatureType>

Methods

  • Binds a setting to an equivalent property on the table.

    Parameters

    • setting: keyof TableSchema

      The name of the setting to bind.

    • OptionaltableProperty:
          | "listMode"
          | "title"
          | "url"
          | "id"
          | "gdbVersion"
          | "destroy"
          | "@eventTypes"
          | "set"
          | "emit"
          | "hasEventListener"
          | "on"
          | "addHandles"
          | "hasHandles"
          | "removeHandles"
          | "watch"
          | "clone"
          | "fields"
          | "outFields"
          | "hasM"
          | "hasZ"
          | "popupTemplate"
          | "labelingInfo"
          | "renderer"
          | "opacity"
          | "spatialReference"
          | "mode"
          | "elevationInfo"
          | "visible"
          | "refreshInterval"
          | "labelsVisible"
          | "maxScale"
          | "popupEnabled"
          | "floorInfo"
          | "source"
          | "sourceJSON"
          | "objectIdField"
          | "geometryType"
          | "types"
          | "templates"
          | "orderBy"
          | "definitionExpression"
          | "minScale"
          | "timeInfo"
          | "featureReduction"
          | "globalIdField"
          | "createPopupTemplate"
          | "createQuery"
          | "getField"
          | "getFieldDomain"
          | "queryExtent"
          | "queryFeatureCount"
          | "queryFeatures"
          | "queryObjectIds"
          | "getAtOrigin"
          | "originOf"
          | "revertAllToOrigin"
          | "revertToOrigin"
          | "isFulfilled"
          | "isRejected"
          | "isResolved"
          | "when"
          | "cancelLoad"
          | "load"
          | "fullExtent"
          | "parent"
          | "persistenceEnabled"
          | "visibilityTimeExtent"
          | "createLayerView"
          | "fetchAttributionData"
          | "customParameters"
          | "blendMode"
          | "legendEnabled"
          | "apiKey"
          | "save"
          | "saveAs"
          | "portalItem"
          | "copyright"
          | "layerId"
          | "effect"
          | "queryAttributeBins"
          | "refresh"
          | "timeExtent"
          | "timeOffset"
          | "useViewTime"
          | "dateFieldsTimeZone"
          | "displayField"
          | "historicMoment"
          | "returnM"
          | "returnZ"
          | "displayFilterEnabled"
          | "displayFilterInfo"
          | "formTemplate"
          | "attributeTableTemplate"
          | "screenSizePerspectiveEnabled"
          | "trackInfo"
          | "featureEffect"
          | "typeIdField"
          | "editingEnabled"
          | "addAttachment"
          | "applyEdits"
          | "deleteAttachments"
          | "queryAttachments"
          | "queryRelatedFeatures"
          | "queryRelatedFeaturesCount"
          | "updateAttachment"
          | "queryTopFeatures"
          | "charts"
          | "dynamicDataSource"
          | "fieldConfigurations"
          | "createFieldConfigurations"
          | "getFeatureTitle"
          | "getFeatureType"
          | "getFieldAlias"
          | "getFieldConfiguration"
          | "queryTopFeatureCount"
          | "queryTopFeaturesExtent"
          | "queryTopObjectIds"

      The name of the equivalent property on the table, if it differs from the setting.

    Returns void

  • Creates the backing collection for fields.

    Returns Collection<Field>

  • Gets the value for a setting that represents a collection.

    Type Parameters

    • T

    Parameters

    Returns Collection<T>

  • Gets a property which is itself an instance of Settings.

    Type Parameters

    Parameters

    • setting: keyof TableSchema

      The setting name.

    • factory: (() => T)

      A factory for creating the nested settings.

        • (): T
        • Returns T

    Returns T

  • Determines whether the specified setting has been modified locally or by any parent of the current settings instance.

    Type Parameters

    Parameters

    • setting: K

      The setting to check.

    Returns boolean

  • Invoked as soon as a table is available.

    Parameters

    • table: FeatureLayer

      The newly resolved table instance.

    Returns void

  • Sets the parent settings that these settings will inherit from.

    Parameters

    • parent: TableSchema

      The parent settings to inherit from.

    Returns void

  • Sets the value for a setting. This will override any inherited value for the setting.

    Type Parameters

    Parameters

    • setting: K

      The setting name.

    • value: TableSchema[K]

      The setting value.

    Returns void

  • Parameters

    • properties: Partial<unknown>

    Returns void

  • Parameters

    • properties: Partial<unknown>

    Returns Promise<void>

  • Creates an array of FieldInfos that includes all fields within the Schema.

    Returns FieldInfo[]

  • Generates an esri PopupTemplate from the fields in this schema.

    Returns PopupTemplate

  • Cleans up resources used by the schema.

    Returns void

  • Finds a field by field name.

    Parameters

    • name: string

      The name of the field to search for.

    Returns Field

    The matching field, or undefined if there is no match.

  • Type Parameters

    • K extends never

    Parameters

    • key: K

    Returns unknown

  • Determines whether the settings have been locally modified in any way.

    Returns boolean

  • Determines whether the specified setting has been locally modified, and is thus overriding any inherited value.

    Parameters

    Returns boolean

  • Removes all local overrides, resetting all settings to their inherited values, if any.

    Returns void

  • Removes a local override for a setting and resets it to its inherited value, if any.

    Parameters

    Returns void

  • Generates a popup template field info object from an esri field.

    Parameters

    • field: Field

      The field to generate the field info object from.

    Returns FieldInfo