Struct kgdata::db::remotedb::remote_rocksdb_dict::BaseRemoteRocksDBDict
source · pub struct BaseRemoteRocksDBDict<K: AsRef<[u8]> + Eq + Hash, V, S: Client> {
pub sockets: Vec<S>,
/* private fields */
}
Fields§
§sockets: Vec<S>
Implementations§
Trait Implementations§
source§impl<K: AsRef<[u8]> + Eq + Hash, V: Send + Sync, S: Client> Map<K, V> for BaseRemoteRocksDBDict<K, V, S>
impl<K: AsRef<[u8]> + Eq + Hash, V: Send + Sync, S: Client> Map<K, V> for BaseRemoteRocksDBDict<K, V, S>
source§fn par_slice_get<Q>(&self, keys: &[Q]) -> Result<Vec<Option<V>>, KGDataError>
fn par_slice_get<Q>(&self, keys: &[Q]) -> Result<Vec<Option<V>>, KGDataError>
Get multiple keys in parallel
source§fn contains_key<Q>(&self, key: &Q) -> Result<bool, KGDataError>
fn contains_key<Q>(&self, key: &Q) -> Result<bool, KGDataError>
Check if a key exists
source§fn slice_get_exist<Q>(&self, keys: &[Q]) -> Result<Vec<V>, KGDataError>
fn slice_get_exist<Q>(&self, keys: &[Q]) -> Result<Vec<V>, KGDataError>
Get existing keys – error if any key does not exist
source§fn slice_get_exist_as_map<Q>(
&self,
keys: &[Q]
) -> Result<HashMap<K, V>, KGDataError>
fn slice_get_exist_as_map<Q>( &self, keys: &[Q] ) -> Result<HashMap<K, V>, KGDataError>
Get existing keys as a map – error if any key does not exist
fn iter_get<I: IntoIterator<Item = Q>, Q>( &self, keys: I ) -> Result<Vec<Option<V>>, KGDataError>
fn iter_get_exist<I: IntoIterator<Item = Q>, Q>( &self, keys: I ) -> Result<Vec<V>, KGDataError>
fn iter_get_exist_as_map<I: IntoIterator<Item = Q>, Q>( &self, keys: I ) -> Result<HashMap<K, V>, KGDataError>
fn par_slice_get_exist<Q>(&self, keys: &[Q]) -> Result<Vec<V>, KGDataError>
fn par_slice_get_exist_as_map<Q>( &self, keys: &[Q] ) -> Result<HashMap<K, V>, KGDataError>
Auto Trait Implementations§
impl<K, V, S> !Freeze for BaseRemoteRocksDBDict<K, V, S>
impl<K, V, S> RefUnwindSafe for BaseRemoteRocksDBDict<K, V, S>where
S: RefUnwindSafe,
impl<K, V, S> Send for BaseRemoteRocksDBDict<K, V, S>
impl<K, V, S> Sync for BaseRemoteRocksDBDict<K, V, S>
impl<K, V, S> Unpin for BaseRemoteRocksDBDict<K, V, S>where
S: Unpin,
impl<K, V, S> UnwindSafe for BaseRemoteRocksDBDict<K, V, 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