pub struct VectorNamespace(/* private fields */);Expand description
The search space one call sees: one tenant’s slice of the index.
Implementations§
Source§impl VectorNamespace
impl VectorNamespace
Sourcepub fn for_tenant(tenant: &TenantId) -> Self
pub fn for_tenant(tenant: &TenantId) -> Self
The namespace of a tenant: the tenant id itself — always under
MAX_NAMESPACE_BYTES, so this cannot fail.
Sourcepub fn new(namespace: impl Into<String>) -> Result<Self, VectorIndexError>
pub fn new(namespace: impl Into<String>) -> Result<Self, VectorIndexError>
A namespace named directly, for tests and non-tenant corpora.
§Errors
VectorIndexError::InvalidInput when the name is empty or over
MAX_NAMESPACE_BYTES bytes.
pub fn as_str(&self) -> &str
Trait Implementations§
Source§impl Clone for VectorNamespace
impl Clone for VectorNamespace
Source§impl Debug for VectorNamespace
impl Debug for VectorNamespace
Source§impl Display for VectorNamespace
impl Display for VectorNamespace
impl Eq for VectorNamespace
Source§impl Hash for VectorNamespace
impl Hash for VectorNamespace
Source§impl PartialEq for VectorNamespace
impl PartialEq for VectorNamespace
impl StructuralPartialEq for VectorNamespace
Auto Trait Implementations§
impl Freeze for VectorNamespace
impl RefUnwindSafe for VectorNamespace
impl Send for VectorNamespace
impl Sync for VectorNamespace
impl Unpin for VectorNamespace
impl UnsafeUnpin for VectorNamespace
impl UnwindSafe for VectorNamespace
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.