Skip to content

Commit d2c254e

Browse files
committed
Make SIM_BUCKETS and SIM_BUCKET_SIZE public
1 parent 7daacea commit d2c254e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

crates/geo_filters/src/diff_count.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mod sim_hash;
1818

1919
use bitvec::*;
2020
pub use config::{GeoDiffConfig13, GeoDiffConfig7};
21-
pub use sim_hash::SimHash;
21+
pub use sim_hash::{SimHash, SIM_BUCKETS, SIM_BUCKET_SIZE};
2222

2323
/// Diff count filter with a relative error standard deviation of ~0.125.
2424
pub type GeoDiffCount7<'a> = GeoDiffCount<'a, GeoDiffConfig7>;

crates/geo_filters/src/diff_count/sim_hash.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ use crate::Diff;
1212
use super::BitVec;
1313

1414
/// Number of bits covered by each SimHash bucket.
15-
pub(crate) const SIM_BUCKET_SIZE: usize = 6;
15+
pub const SIM_BUCKET_SIZE: usize = 6;
1616
/// Number of consecutive SimHash buckets used for searching.
17-
pub(crate) const SIM_BUCKETS: usize = 20;
17+
pub const SIM_BUCKETS: usize = 20;
1818

1919
pub type BucketId = usize;
2020

0 commit comments

Comments
 (0)