Skip to main content

string_prefix_upper_bound

Function string_prefix_upper_bound 

Source
pub fn string_prefix_upper_bound(prefix: &str) -> Option<String>
Expand description

The exclusive upper bound for every row key beginning with prefix.

Row keys are ordered as byte strings, so a prefix scan is the range [prefix, string_prefix_upper_bound(prefix)). None means the prefix is all 0xff bytes and nothing sorts above it, so the scan runs to the end.