Fdb.Bulk.BatchOperationContext
Namespace: FoundationDB.Client · class
Context for a long-running batched read operation
Properties
Abort
bool Abort { get; set; }
Gets or sets the abort flag
Cooldown
int Cooldown { get; }
Cooldown timer used for scaling up and down the step size
ElapsedGeneration
TimeSpan ElapsedGeneration { get; }
Elapsed time since the start of the current transaction window
ElapsedTotal
TimeSpan ElapsedTotal { get; }
Total elapsed time since the start of this bulk operation
Failed
bool Failed { get; }
Returns true if at least one un-retryable exception happened during the process of one batch
Generation
int Generation { get; }
Generation number of the transaction (starting from 0 for the initial transaction)
IsTransactional
bool IsTransactional { get; }
Returns true if all values processed up to this point used the same transaction, or false if more than one transaction was used.
Position
long Position { get; }
Offset of the current batch from the start of the source sequence
Step
int Step { get; }
Current batch size target
Transaction
IFdbReadOnlyTransaction Transaction { get; }
Transaction corresponding to the current generation
Methods
Stop
void Stop()
If called, will stop immediately after processing this batch, even if the source sequence contains more elements