Class ContentFeatureSource.ContentQueryCapabilities

Object
QueryCapabilities
ContentQueryCapabilities
Enclosing class:
ContentFeatureSource

public class ContentFeatureSource.ContentQueryCapabilities extends QueryCapabilities
The query capabilities of the store, plus the offset and the sorts this class does in memory or on disk. Stores that wrap a content feature source return these capabilities unchanged.
  • Constructor Details

    • ContentQueryCapabilities

      public ContentQueryCapabilities()
  • Method Details

    • getStoreCapabilities

      public QueryCapabilities getStoreCapabilities()
      Returns the capabilities of the store alone. They list the sorts the store does natively.
    • isOffsetSupported

      public boolean isOffsetSupported()
      Description copied from class: QueryCapabilities
      Is offset supported. A value of true implies ability to have a consistent sort order. At least SortBy.NATURAL_ORDER shall be supported, and be the default order if a Query with offset but no SortBy is issued.
      Overrides:
      isOffsetSupported in class QueryCapabilities
    • supportsSorting

      public boolean supportsSorting(SortBy... sortAttributes)
      Description copied from class: QueryCapabilities
      Returns whether a list of properties can be used as SortBy keys.

      May include current feature type properties as well as "@id" for sorting on the Feature ID. Note, however, that ability to sort by the fature id does not necessarily implies the same ordering than SortBy.NATURAL_ORDER, though its probable they match for datastores where the feature id is built up from a primary key.

      Returns true if passed a null or empty array, otherwise the actual attributes are checked. When the array is not null and not empty, by default returns false. FeatureSource implementations should override as needed.

      Overrides:
      supportsSorting in class QueryCapabilities
      Returns:
      whether the FeatureType this query capabilities refers to can be natively sorted by the provided list of attribtue/order pairs
    • isReliableFIDSupported

      public boolean isReliableFIDSupported()
      Description copied from class: QueryCapabilities
      Returns whether the feature source is capable of producing "reliable" fids.

      In this content the term "reliable" refers to the ability to read the same feature twice (with no transactions against the feature source in the interim) and get the same feature id back both times.

      Overrides:
      isReliableFIDSupported in class QueryCapabilities
      Returns:
      True to indicate reliable fids are supported, otherwise false.
    • isUseProvidedFIDSupported

      public boolean isUseProvidedFIDSupported()
      Description copied from class: QueryCapabilities
      If true the datastore supports using the provided feature id in the data insertion workflow as opposed to generating a new id. In that case it will look into the user data map (Property.getUserData()) for a Hints.USE_PROVIDED_FID key associated to a Boolean.TRUE value, if the key/value pair is there an attempt to use the provided id will be made, and the operation will fail of the key cannot be parsed into a valid storage identifier.
      Overrides:
      isUseProvidedFIDSupported in class QueryCapabilities