Struct foundationdb::transaction::RangeOptionBuilder
source · pub struct RangeOptionBuilder(_);
Expand description
A Builder with which options need to used for a range query.
Implementations§
source§impl RangeOptionBuilder
impl RangeOptionBuilder
sourcepub fn new(begin: KeySelector, end: KeySelector) -> Self
pub fn new(begin: KeySelector, end: KeySelector) -> Self
Creates new builder with given key selectors.
sourcepub fn limit(self, limit: usize) -> Self
pub fn limit(self, limit: usize) -> Self
If non-zero, indicates the maximum number of key-value pairs to return.
sourcepub fn target_bytes(self, target_bytes: usize) -> Self
pub fn target_bytes(self, target_bytes: usize) -> Self
If non-zero, indicates a (soft) cap on the combined number of bytes of keys and values to return for each item.
sourcepub fn mode(self, mode: StreamingMode) -> Self
pub fn mode(self, mode: StreamingMode) -> Self
One of the options::StreamingMode values indicating how the caller would like the data in the range returned.
sourcepub fn reverse(self, reverse: bool) -> Self
pub fn reverse(self, reverse: bool) -> Self
If non-zero, key-value pairs will be returned in reverse lexicographical order beginning at the end of the range.
sourcepub fn build(self) -> RangeOption
pub fn build(self) -> RangeOption
Finalizes the construction of the RangeOption