pub struct HyperbolicHashBucket { /* private fields */ }Expand description
Hash bucket for the hyperbolic hash table.
Each bucket’s VP-tree is protected by a Mutex for per-bucket concurrent spatial index access.
Implementations§
Source§impl HyperbolicHashBucket
impl HyperbolicHashBucket
Sourcepub fn new(region: HyperbolicRegion, position_signature: Vec<i32>) -> Self
pub fn new(region: HyperbolicRegion, position_signature: Vec<i32>) -> Self
Create a new hyperbolic hash bucket.
Sourcepub fn effective_radius(&self) -> FixedPoint
pub fn effective_radius(&self) -> FixedPoint
The pruning radius for range/KNN queries: the nominal region radius, widened to cover the farthest node currently registered in this bucket.
Sourcepub fn contains(
&self,
point: &HyperbolicPoint,
poincare_disk: &PoincareDisk,
) -> bool
pub fn contains( &self, point: &HyperbolicPoint, poincare_disk: &PoincareDisk, ) -> bool
Check if a point belongs to this bucket.
Sourcepub fn region(&self) -> &HyperbolicRegion
pub fn region(&self) -> &HyperbolicRegion
Get the region for this bucket.
Sourcepub fn position_signature(&self) -> &[i32]
pub fn position_signature(&self) -> &[i32]
Get the position signature.
Sourcepub fn quick_validate(&self, point: &HyperbolicPoint) -> bool
pub fn quick_validate(&self, point: &HyperbolicPoint) -> bool
Perform a quick validation check.
Trait Implementations§
Source§impl Clone for HyperbolicHashBucket
impl Clone for HyperbolicHashBucket
Auto Trait Implementations§
impl !Freeze for HyperbolicHashBucket
impl RefUnwindSafe for HyperbolicHashBucket
impl Send for HyperbolicHashBucket
impl Sync for HyperbolicHashBucket
impl Unpin for HyperbolicHashBucket
impl UnsafeUnpin for HyperbolicHashBucket
impl UnwindSafe for HyperbolicHashBucket
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more