Skip to content

Commit

Permalink
implement add_{sequence,protein} for hll
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed May 5, 2021
1 parent f9355e8 commit c3b4503
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/src/signature.rs
Expand Up @@ -229,15 +229,15 @@ impl SigsTrait for Sketch {
match *self {
Sketch::MinHash(ref mut mh) => mh.add_sequence(seq, force),
Sketch::LargeMinHash(ref mut mh) => mh.add_sequence(seq, force),
Sketch::HyperLogLog(_) => unimplemented!(),
Sketch::HyperLogLog(ref mut hll) => hll.add_sequence(seq, force),
}
}

fn add_protein(&mut self, seq: &[u8]) -> Result<(), Error> {
match *self {
Sketch::MinHash(ref mut mh) => mh.add_protein(seq),
Sketch::LargeMinHash(ref mut mh) => mh.add_protein(seq),
Sketch::HyperLogLog(_) => unimplemented!(),
Sketch::HyperLogLog(ref mut hll) => hll.add_protein(seq),
}
}
}
Expand Down

0 comments on commit c3b4503

Please sign in to comment.