pub trait WideColumnClient: Send + Sync {
// Required methods
fn put<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
table: &'life1 str,
row: &'life2 str,
cells: &'life3 BTreeMap<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn get<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
table: &'life1 str,
row: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<BTreeMap<String, Value>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn scan<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
table: &'life1 str,
prefix: &'life2 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, BTreeMap<String, Value>)>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn delete<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
table: &'life1 str,
row: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Wide-column store client abstraction (e.g. Apache HBase).
Cells are keyed by family:qualifier; values are opaque JSON values whose
mapping to bytes is backend-specific.
Required Methods§
Sourcefn put<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
table: &'life1 str,
row: &'life2 str,
cells: &'life3 BTreeMap<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn put<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
table: &'life1 str,
row: &'life2 str,
cells: &'life3 BTreeMap<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Write cells to row in table, creating or merging the row.
Sourcefn get<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
table: &'life1 str,
row: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<BTreeMap<String, Value>>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
table: &'life1 str,
row: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<BTreeMap<String, Value>>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Read every cell of row; None when the row does not exist.
Sourcefn scan<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
table: &'life1 str,
prefix: &'life2 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, BTreeMap<String, Value>)>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn scan<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
table: &'life1 str,
prefix: &'life2 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, BTreeMap<String, Value>)>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Scan rows starting at prefix (a row-key prefix), returning at most
limit rows as (row key, cells) pairs.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".