Class: QgsCachedFeatureWriterIterator

Uses another iterator as backend and writes features to the cache.

Class Hierarchy

Inheritance diagram of qgis.core.QgsCachedFeatureWriterIterator

Base classes

QgsAbstractFeatureIterator

Internal feature iterator to be implemented within data providers.

Abstract Methods

close

Close this iterator.

fetchFeature

Implementation for fetching a feature.

rewind

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:
__init__(a0: QgsCachedFeatureWriterIterator)
Parameters:

a0 (QgsCachedFeatureWriterIterator)

abstract close(self) bool[source]

Close this iterator. No further features will be available.

Return type:

bool

Returns:

True if successful

abstract fetchFeature(self, f: QgsFeature) bool[source]

Implementation for fetching a feature.

Parameters:

f (QgsFeature) – Will write to this feature

Return type:

bool

Returns:

bool True if the operation was OK

abstract rewind(self) bool[source]

Rewind to the beginning of the iterator

Return type:

bool

Returns:

bool True if the operation was OK