|
| QgsVectorLayerCache (QgsVectorLayer *layer, int cacheSize, QObject *parent=nullptr) |
|
| ~QgsVectorLayerCache () override |
|
void | addCacheIndex (QgsAbstractCacheIndex *cacheIndex) |
| Adds a QgsAbstractCacheIndex to this cache. More...
|
|
QgsFeatureIds | cachedFeatureIds () const |
| Returns the set of feature IDs for features which are cached. More...
|
|
bool | cacheGeometry () const |
| Returns true if the cache will fetch and cache feature geometries. More...
|
|
int | cacheSize () |
| Returns the maximum number of features this cache will hold. More...
|
|
bool | featureAtId (QgsFeatureId featureId, QgsFeature &feature, bool skipCache=false) |
| Gets the feature at the given feature id. More...
|
|
long long | featureCount () const |
| Returns the number of features contained in the source, or -1 if the feature count is unknown. More...
|
|
QgsFields | fields () const |
| Returns the fields associated with features in the cache. More...
|
|
QgsFeature | getFeature (QgsFeatureId fid) |
| Query the layer for the feature with the given id. More...
|
|
QgsFeatureIterator | getFeatures (const QgsFeatureIds &fids) |
| Query the layer for the features with the given ids. More...
|
|
QgsFeatureIterator | getFeatures (const QgsFeatureRequest &featureRequest=QgsFeatureRequest()) |
| Query this VectorLayerCache for features. More...
|
|
QgsFeatureIterator | getFeatures (const QgsRectangle &rectangle) |
| Query the layer for the features which intersect the specified rectangle. More...
|
|
QgsFeatureIterator | getFeatures (const QString &expression) |
| Query the layer for features matching a given expression. More...
|
|
bool | hasFullCache () const |
| Returns true if the cache is complete, ie it contains all features. More...
|
|
bool | isFidCached (QgsFeatureId fid) const |
| Check if a certain feature id is cached. More...
|
|
QgsVectorLayer * | layer () |
| Returns the layer to which this cache belongs. More...
|
|
bool | removeCachedFeature (QgsFeatureId fid) |
| Removes the feature identified by fid from the cache if present. More...
|
|
void | setCacheAddedAttributes (bool cacheAddedAttributes) |
| If this is enabled, the subset of cached attributes will automatically be extended to also include newly added attributes. More...
|
|
void | setCacheGeometry (bool cacheGeometry) |
| Enable or disable the caching of geometries. More...
|
|
void | setCacheSize (int cacheSize) |
| Sets the maximum number of features to keep in the cache. More...
|
|
void | setCacheSubsetOfAttributes (const QgsAttributeList &attributes) |
| Set the subset of attributes to be cached. More...
|
|
void | setFullCache (bool fullCache) |
| This enables or disables full caching. More...
|
|
QgsCoordinateReferenceSystem | sourceCrs () const |
| Returns the coordinate reference system for features in the cache. More...
|
|
QgsWkbTypes::Type | wkbType () const |
| Returns the geometry type for features in the cache. More...
|
|