FdbRangeChunk<TResult>
Namespace: FoundationDB.Client · class
Implements: IReadOnlyList<TResult>, IEnumerable<TResult>, IEnumerable, IReadOnlyCollection<TResult>
Constructors
FdbRangeChunk<TResult>
FdbRangeChunk<TResult>(ReadOnlyMemory<TResult> items, bool hasMore, int iteration, FdbRangeOptions options, Slice first, Slice last, int totalBytes)
Properties
Count
int Count { get; }
Returns the number of results in this chunk
FetchMode
FdbFetchMode FetchMode { get; }
Specifies if the chunk contains only keys, only values, or both (default)
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
IsEmpty
bool IsEmpty { get; }
Returns true if the chunk does not contain any item.
Item
TResult Item { get; }
TResult Item { get; }
ReadOnlySpan<TResult> Item { get; }
Items
ReadOnlyMemory<TResult> Items { get; }
Contains the items that where
Iteration
int Iteration { get; }
Iteration number of this chunk (used when paging through a long range)
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
Reversed
bool Reversed { get; }
Set to true if the original range read was reversed (meaning the items are in reverse lexicographic order
TotalBytes
int TotalBytes { get; }
Sum of the size (in bytes) of all the keys and values read from the database
Returns: This is the size of the data read from the network, before they were decoded into instances of TResult
Methods
CopyTo
void CopyTo(Span<TResult> destination)
void CopyTo(TResult[] array, int offset = 0)
GetEnumerator
ChunkEnumerator GetEnumerator()
ItemRef
TResult ItemRef(int index)
Return a reference to the result at the specified index
ToArray
TResult[] ToArray()