Class: QgsCachedFeatureWriterIterator¶
Uses another iterator as backend and writes features to the cache
Class Hierarchy¶
Base classes¶
Internal feature iterator to be implemented within data providers  | 
Methods
Close this iterator.  | 
|
Implementation for fetching a feature.  | 
|
Rewind to the beginning of the iterator  | 
- class qgis.core.QgsCachedFeatureWriterIterator[source]¶
 Bases:
QgsAbstractFeatureIterator- __init__(vlCache: QgsVectorLayerCache | None, featureRequest: QgsFeatureRequest)
 This constructor creates a feature iterator, which queries the backend and caches retrieved features.
- Parameters:
 vlCache (Optional[QgsVectorLayerCache]) – The vector layer cache to use
featureRequest (QgsFeatureRequest) – The feature request to answer
- __init__(a0: QgsCachedFeatureWriterIterator)
 - Parameters:
 
- close(self) bool[source]¶
 Close this iterator. No further features will be available.
- Return type:
 bool
- Returns:
 Trueif successful
- fetchFeature(self, f: QgsFeature) bool[source]¶
 Implementation for fetching a feature.
- Parameters:
 f (QgsFeature) – Will write to this feature
- Return type:
 bool
- Returns:
 bool
Trueif the operation was OK