IFdbKeyValueRangeQuery

Namespace: FoundationDB.Client · interface

Implements: IFdbRangeQuery<KeyValuePair<Slice, Slice>>, IFdbRangeQuery, IAsyncLinqQuery<KeyValuePair<Slice, Slice>>, IAsyncQuery<KeyValuePair<Slice, Slice>>

Query that will asynchronously stream the key/value pairs returned by one or more GetRange operations

Methods

Decode

IFdbRangeQuery<TResult> Decode<TResult>(FdbKeyValueDecoder<TResult> decoder)

Decode the key/value pairs into instances of type TResult

  • decoder — Handler that is called for each key/value pair to decode

This method is optimized to reduce redundant memory copies, and will decode the key/value directly from the native memory

IFdbRangeQuery<TResult> Decode<TState, TResult>(TState state, FdbKeyValueDecoder<TState, TResult> decoder)

Decode the key/value pairs into instances of type TResult

  • state — State that is passed to decoder
  • decoder — Handler that is called for each key/value pair to decode

Returns: Range query that returns a sequence of decoded items

This method is optimized to reduce redundant memory copies, and will decode the key/value directly from the native memory