pub struct SearchIo<S> { /* private fields */ }Implementations§
Source§impl<S> SearchIo<S>
impl<S> SearchIo<S>
pub fn new(store: S, runtime: Arc<SearchRuntime>) -> Self
pub fn namespace(&self) -> StoreCacheNamespace
pub fn runtime(&self) -> &Arc<SearchRuntime> ⓘ
pub fn store(&self) -> &S
pub fn physical_bytes_read(&self) -> usize
pub fn physical_reads(&self) -> usize
Sourcepub fn with_proximity_dimensions(self, dimensions: u32) -> Self
pub fn with_proximity_dimensions(self, dimensions: u32) -> Self
Bind proximity decoder context so authoritative PRXN objects can be validated before shared cache admission, including through AsyncStore.
Trait Implementations§
Source§impl<S: Store + Clone> Store for SearchIo<S>
impl<S: Store + Clone> Store for SearchIo<S>
Get immutable shared bytes without requiring the engine to copy an
already-retained cache value. Stores that cannot retain values may use
the default owned-read adapter.
Source§fn put(&self, key: &[u8], value: &[u8]) -> Result<(), Self::Error>
fn put(&self, key: &[u8], value: &[u8]) -> Result<(), Self::Error>
Store key-value pair Read more
Source§fn batch(&self, ops: &[BatchOp<'_>]) -> Result<(), Self::Error>
fn batch(&self, ops: &[BatchOp<'_>]) -> Result<(), Self::Error>
Batch write operations (atomic if supported by backend) Read more
Source§fn batch_get_ordered(
&self,
keys: &[&[u8]],
) -> Result<Vec<Option<Vec<u8>>>, Self::Error>
fn batch_get_ordered( &self, keys: &[&[u8]], ) -> Result<Vec<Option<Vec<u8>>>, Self::Error>
Retrieve multiple keys in a single operation with order preservation Read more
Source§fn batch_get_ordered_unique(
&self,
keys: &[&[u8]],
) -> Result<Vec<Option<Vec<u8>>>, Self::Error>
fn batch_get_ordered_unique( &self, keys: &[&[u8]], ) -> Result<Vec<Option<Vec<u8>>>, Self::Error>
Retrieve unique keys in input order. Read more
Retrieve unique keys in order as retained immutable byte buffers.
Whether shared reads return an already-retained immutable allocation.
Source§fn prefers_batch_reads(&self) -> bool
fn prefers_batch_reads(&self) -> bool
Whether this store has an efficient batched-read implementation. Read more
Source§fn supports_hints(&self) -> bool
fn supports_hints(&self) -> bool
Whether this store persists performance hints.
Source§fn get_hint(
&self,
namespace: &[u8],
key: &[u8],
) -> Result<Option<Vec<u8>>, Self::Error>
fn get_hint( &self, namespace: &[u8], key: &[u8], ) -> Result<Option<Vec<u8>>, Self::Error>
Retrieve an optional performance hint for a logical namespace and key. Read more
Source§fn put_hint(
&self,
namespace: &[u8],
key: &[u8],
value: &[u8],
) -> Result<(), Self::Error>
fn put_hint( &self, namespace: &[u8], key: &[u8], value: &[u8], ) -> Result<(), Self::Error>
Persist an optional performance hint for a logical namespace and key. Read more
Source§fn batch_get(
&self,
keys: &[&[u8]],
) -> Result<HashMap<Vec<u8>, Vec<u8>>, Self::Error>
fn batch_get( &self, keys: &[&[u8]], ) -> Result<HashMap<Vec<u8>, Vec<u8>>, Self::Error>
Retrieve multiple keys in a single operation Read more
Auto Trait Implementations§
impl<S> Freeze for SearchIo<S>where
S: Freeze,
impl<S> RefUnwindSafe for SearchIo<S>where
S: RefUnwindSafe,
impl<S> Send for SearchIo<S>where
S: Send,
impl<S> Sync for SearchIo<S>where
S: Sync,
impl<S> Unpin for SearchIo<S>where
S: Unpin,
impl<S> UnsafeUnpin for SearchIo<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for SearchIo<S>where
S: UnwindSafe,
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more