pub fn scan_values_in_default(&mut self, key: &Key) -> Result<Vec<(u64, Value)>> {
        self.create_data_cursor()?;
        let cursor = self.data_cursor.as_mut().unwrap();
        let mut ok = cursor.seek(key, &mut self.statistics.data)?;
        if !ok {
            return Ok(vec![]);
        }
        let mut v = vec![];
        while ok {
            let cur_key = cursor.key(&mut self.statistics.data);
            let ts = Key::decode_ts_from(cur_key)?;
            if Key::is_user_key_eq(cur_key, key.as_encoded()) {
                v.push((ts, cursor.value(&mut self.statistics.data).to_vec()));
            } else {
                break;
            }
            ok = cursor.next(&mut self.statistics.data);
        }
        Ok(v)
    }
// Get all Value of the given key in CF_DEFAULT
Get all Value of the given key in CF_DEFAULT
Get all Value of the given key in CF_DEFAULT
pub fn scan_values_in_default(&mut self, key: &Key) -> Result<Vec<(u64, Value)>> {
        self.create_data_cursor()?;
        let cursor = self.data_cursor.as_mut().unwrap();
        let mut ok = cursor.seek(key, &mut self.statistics.data)?;
        if !ok {
            return Ok(vec![]);
        }
        let mut v = vec![];
        while ok {
            let cur_key = cursor.key(&mut self.statistics.data);
            let ts = Key::decode_ts_from(cur_key)?;
            if Key::is_user_key_eq(cur_key, key.as_encoded()) {
                v.push((ts, cursor.value(&mut self.statistics.data).to_vec()));
            } else {
                break;
            }
            ok = cursor.next(&mut self.statistics.data);
        }
        Ok(v)
    }
pub fn scan_values_in_default ( & mut self , key : & Key ) -> Result < Vec < ( u64 , Value ) > > { self . create_data_cursor ( ) ? ; let cursor = self . data_cursor . as_mut ( ) . unwrap ( ) ; let mut ok = cursor . seek ( key , & mut self . statistics . data ) ? ; if ! ok { return Ok ( vec ! [ ] ) ; } let mut v = vec ! [ ] ; while ok { let cur_key = cursor . key ( & mut self . statistics . data ) ; let ts = Key :: decode_ts_from ( cur_key ) ? ; if Key :: is_user_key_eq ( cur_key , key . as_encoded ( ) ) { v . push ( ( ts , cursor . value ( & mut self . statistics . data ) . to_vec ( ) ) ) ; } else { break ; } ok = cursor . next ( & mut self . statistics . data ) ; } Ok ( v ) }
Get all Value of the given key in CF_DEFAULT
Get all Value of the given key in CF_DEFAULT
&mut self
key
&Key
&mut self
key
&Key