Aracılığıyla paylaş


ChangeFeedEstimator.GetCurrentStateIterator Method

Definition

Gets the estimation per lease in the lease container.

public abstract Microsoft.Azure.Cosmos.FeedIterator<Microsoft.Azure.Cosmos.ChangeFeedProcessorState> GetCurrentStateIterator (Microsoft.Azure.Cosmos.ChangeFeedEstimatorRequestOptions changeFeedEstimatorRequestOptions = default);
abstract member GetCurrentStateIterator : Microsoft.Azure.Cosmos.ChangeFeedEstimatorRequestOptions -> Microsoft.Azure.Cosmos.FeedIterator<Microsoft.Azure.Cosmos.ChangeFeedProcessorState>
Public MustOverride Function GetCurrentStateIterator (Optional changeFeedEstimatorRequestOptions As ChangeFeedEstimatorRequestOptions = Nothing) As FeedIterator(Of ChangeFeedProcessorState)

Parameters

changeFeedEstimatorRequestOptions
ChangeFeedEstimatorRequestOptions

(Optional) Customize the estimation iterator.

Returns

An iterator that yields an estimation of pending work in amount of transactions per distributed lease token.

Remarks

The estimation over the Change Feed identifies volumes of transactions. If operations in the container are performed through stored procedures, transactional batch or bulk, a group of operations may share the same transaction scope and represented by a single transaction. In those cases, the estimation might not exactly represent number of items, but it is still valid to understand if the pending volume is increasing, decreasing, or on a steady state.

Applies to