Package org.geotools.data.store
Class ContentFeatureSource.ContentQueryCapabilities
Object
QueryCapabilities
ContentQueryCapabilities
- Enclosing class:
- ContentFeatureSource
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the capabilities of the store alone.booleanIs offset supported.booleanReturns whether the feature source is capable of producing "reliable" fids.booleanIf true the datastore supports using the provided feature id in the data insertion workflow as opposed to generating a new id.booleansupportsSorting(SortBy... sortAttributes) Returns whether a list of properties can be used as SortBy keys.Methods inherited from class QueryCapabilities
isJoiningSupported, isVersionSupported
-
Constructor Details
-
ContentQueryCapabilities
public ContentQueryCapabilities()
-
-
Method Details
-
getStoreCapabilities
Returns the capabilities of the store alone. They list the sorts the store does natively. -
isOffsetSupported
public boolean isOffsetSupported()Description copied from class:QueryCapabilitiesIs offset supported. A value of true implies ability to have a consistent sort order. At leastSortBy.NATURAL_ORDERshall be supported, and be the default order if a Query with offset but no SortBy is issued.- Overrides:
isOffsetSupportedin classQueryCapabilities
-
supportsSorting
Description copied from class:QueryCapabilitiesReturns 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:
supportsSortingin classQueryCapabilities- 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:QueryCapabilitiesReturns 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:
isReliableFIDSupportedin classQueryCapabilities- Returns:
- True to indicate reliable fids are supported, otherwise false.
-
isUseProvidedFIDSupported
public boolean isUseProvidedFIDSupported()Description copied from class:QueryCapabilitiesIf 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 aHints.USE_PROVIDED_FIDkey associated to aBoolean.TRUEvalue, 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:
isUseProvidedFIDSupportedin classQueryCapabilities
-