1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
use crate::errors::Result;
use crate::Range;
pub trait RangePropertiesExt {
fn get_range_approximate_keys(&self, range: Range, large_threshold: u64) -> Result<u64>;
fn get_range_approximate_keys_cf(
&self,
cfname: &str,
range: Range,
large_threshold: u64,
) -> Result<u64>;
fn get_range_approximate_size(&self, range: Range, large_threshold: u64) -> Result<u64>;
fn get_range_approximate_size_cf(
&self,
cfname: &str,
range: Range,
large_threshold: u64,
) -> Result<u64>;
fn get_range_approximate_split_keys(
&self,
range: Range,
key_count: usize,
) -> Result<Vec<Vec<u8>>>;
fn get_range_approximate_split_keys_cf(
&self,
cfname: &str,
range: Range,
key_count: usize,
) -> Result<Vec<Vec<u8>>>;
}