pub fn seek_ts(&mut self, ts: u64) -> Result<Option<Key>> {
        assert!(self.scan_mode.is_some());
        self.create_write_cursor()?;

        let cursor = self.write_cursor.as_mut().unwrap();
        let mut ok = cursor.seek_to_first(&mut self.statistics.write);

        while ok {
            if Write::parse(cursor.value(&mut self.statistics.write))?.start_ts == ts {
                return Ok(Some(
                    Key::from_encoded(cursor.key(&mut self.statistics.write).to_vec())
                        .truncate_ts()?,
                ));
            }
            ok = cursor.next(&mut self.statistics.write);
        }
        Ok(None)
    }
/// Return the first committed key for which `start_ts` equals to `ts`
Return the first committed key for which `start_ts` equals to `ts`
Return the first committed key for which ` start_ts ` equals to ` ts `
pub fn seek_ts(&mut self, ts: u64) -> Result<Option<Key>> {
        assert!(self.scan_mode.is_some());
        self.create_write_cursor()?;
        let cursor = self.write_cursor.as_mut().unwrap();
        let mut ok = cursor.seek_to_first(&mut self.statistics.write);
        while ok {
            if Write::parse(cursor.value(&mut self.statistics.write))?.start_ts == ts {
                return Ok(Some(
                    Key::from_encoded(cursor.key(&mut self.statistics.write).to_vec())
                        .truncate_ts()?,
                ));
            }
            ok = cursor.next(&mut self.statistics.write);
        }
        Ok(None)
    }
pub fn seek_ts ( & mut self , ts : u64 ) -> Result < Option < Key > > { assert ! ( self scan_mode is_some ( ) ) ; self . create_write_cursor ( ) ? ; let cursor = self . write_cursor . as_mut ( ) . unwrap ( ) ; let mut ok = cursor . seek_to_first ( & mut self . statistics . write ) ; while ok { if Write :: parse ( cursor . value ( & mut self . statistics . write ) ) ? . start_ts == ts { return Ok ( Some ( Key :: from_encoded ( cursor . key ( & mut self . statistics . write ) . to_vec ( ) ) . truncate_ts ( ) ? , ) ) ; } ok = cursor . next ( & mut self . statistics . write ) ; } Ok ( None ) }
Return the first committed key for which `start_ts` equals to `ts`
Return the first committed key for which ` start_ts ` equals to ` ts `
&mut self
ts
u64
&mut self
ts
u64