FdbRangeResult
Namespace: FoundationDB.Client · class
Metadata about the result of a range read operation
Constructors
FdbRangeResult
FdbRangeResult(int count, bool hasMore, int iteration, FdbRangeOptions options, Slice first, Slice last, int totalBytes)
Properties
Count
int Count { get; }
Number of results returned by this range read
First
Slice First { get; }
Returns the last item in the chunk
Note that if the range is reversed, then the last item will be LESS than the first!
HasMore
bool HasMore { get; }
Set to true if there are more results in the database than could fit in a single chunk
Iteration
int Iteration { get; }
Iteration number of this chunk, starting from 1 for the first page
This value must be passed to subsequent calls to to continue reading; otherwise, the streaming will not behave properly.
Last
Slice Last { get; }
Returns the first item in the chunk
Note that if the range is reversed, then the first item will be GREATER than the last !
Options
FdbRangeOptions Options { get; }
Options used to perform this operation
They can be passed again to , together with Iteration + 1 to continue reading from the database.
TotalBytes
int TotalBytes { get; }
Sum of the size (in bytes) of all the keys and values read from the database