Struct foundationdb::transaction::GetRangeResult
source · pub struct GetRangeResult { /* private fields */ }
Expand description
Represents the data of a Transaction::get_range
. The result might not contains all results
specified by Transaction::get_range
. A caller can test if the result is complete by either
checking GetRangeResult::key_values().more()
is true
, or checking GetRangeResult::next
is
not None
.
If a caller wants to fetch all matching results, they should call Transcation::get_range
with
following RangeOption
returned by GetRangeResult::next
. The caller might want to use
Transaction::get_ranges
which will fetch all results until it finishes.
Implementations§
source§impl GetRangeResult
impl GetRangeResult
sourcepub fn transaction(&self) -> Transaction
pub fn transaction(&self) -> Transaction
Returns a clone of the Transaction this get is a part of
sourcepub fn key_values(&self) -> KeyValues<'_>
pub fn key_values(&self) -> KeyValues<'_>
Returns the values associated with this get
sourcepub fn next(&self) -> Option<RangeOption>
pub fn next(&self) -> Option<RangeOption>
Returns None
if all results are returned, and returns Some(_)
if there are more results
to fetch. In this case, user can fetch remaining results by calling
Transaction::get_range
with returned RangeOption
.