// time_range is depends on encoding specification
time_range is depends on encoding specification
time_range is depends on encoding specification
pub fn doe_search(&self, time_range: usize, keys: &Vec<Vec<u8>>) -> bool {
        let mut sequnce_count = 0;
        let th = TrajectoryHash::new(7, 20, 16);
        for key in keys.iter() {
            // let result = self.exact_search(&key);
            // let is_find = result != K_NOT_FOUND;
            let is_find = self.accurate_search(key, &th);
            if is_find {
                sequnce_count += 1;
                if sequnce_count >= time_range {
                    return true
                }
            } else {
                sequnce_count = 0;
            }
        }
        return false
    }
pub fn doe_search ( & self , time_range : usize , keys : & Vec < Vec < u8 > > ) -> bool { let mut sequnce_count = 0 ; let th = TrajectoryHash :: new ( 7 , 20 , 16 ) ; for key in keys . iter ( ) { // let result = self.exact_search(&key); // let is_find = result != K_NOT_FOUND; let is_find = self . accurate_search ( key , & th ) ; if is_find { sequnce_count += 1 ; if sequnce_count >= time_range { return true } } else { sequnce_count = 0 ; } } return false }
time_range is depends on encoding specification
time_range is depends on encoding specification
&self
time_range
usize
keys
&Vec<Vec<u8>>