pub struct BigTable<F: FnMut(Request<()>) -> Result<Request<()>, Status>> {
    access_token: Option<AccessToken>,
    client: BigtableClient<InterceptedService<Channel, F>>,
    table_prefix: String,
    app_profile_id: String,
    timeout: Option<Duration>,
}

Fields§

§access_token: Option<AccessToken>§client: BigtableClient<InterceptedService<Channel, F>>§table_prefix: String§app_profile_id: String§timeout: Option<Duration>

Implementations§

source§

impl<F: FnMut(Request<()>) -> Result<Request<()>, Status>> BigTable<F>

source

async fn decode_read_rows_response( &self, rrr: Streaming<ReadRowsResponse> ) -> Result<Vec<(String, Vec<(String, Vec<u8>)>)>, Error>

source

async fn refresh_access_token(&self)

source

pub async fn get_row_keys( &mut self, table_name: &str, start_at: Option<String>, end_at: Option<String>, rows_limit: i64 ) -> Result<Vec<String>, Error>

Get table row keys in lexical order.

If start_at is provided, the row key listing will start with key. Otherwise the listing will start from the start of the table.

If end_at is provided, the row key listing will end at the key. Otherwise it will continue until the rows_limit is reached or the end of the table, whichever comes first. If rows_limit is zero, this method will return an empty array.

source

pub async fn row_key_exists( &mut self, table_name: &str, row_key: String ) -> Result<bool, Error>

Check whether a row key exists in a table

source

pub async fn get_row_data( &mut self, table_name: &str, start_at: Option<String>, end_at: Option<String>, rows_limit: i64 ) -> Result<Vec<(String, Vec<(String, Vec<u8>)>)>, Error>

Get latest data from table.

All column families are accepted, and only the latest version of each column cell will be returned.

If start_at is provided, the row key listing will start with key, or the next key in the table if the explicit key does not exist. Otherwise the listing will start from the start of the table.

If end_at is provided, the row key listing will end at the key. Otherwise it will continue until the rows_limit is reached or the end of the table, whichever comes first. If rows_limit is zero, this method will return an empty array.

source

pub async fn get_multi_row_data( &mut self, table_name: &str, row_keys: &[String] ) -> Result<Vec<(String, Vec<(String, Vec<u8>)>)>, Error>

Get latest data from multiple rows of table, if those rows exist.

source

pub async fn get_single_row_data( &mut self, table_name: &str, row_key: String ) -> Result<Vec<(String, Vec<u8>)>, Error>

Get latest data from a single row of table, if that row exists. Returns an error if that row does not exist.

All column families are accepted, and only the latest version of each column cell will be returned.

source

async fn delete_rows( &mut self, table_name: &str, row_keys: &[String] ) -> Result<(), Error>

Delete one or more table rows

source

async fn put_row_data( &mut self, table_name: &str, family_name: &str, row_data: &[(&String, Vec<(String, Vec<u8>)>)] ) -> Result<(), Error>

Store data for one or more table rows in the family_name Column family

source

pub async fn get_bincode_cell<T>( &mut self, table: &str, key: String ) -> Result<T, Error>where T: DeserializeOwned,

source

pub async fn get_bincode_cells<T>( &mut self, table: &str, keys: &[String] ) -> Result<Vec<(String, Result<T, Error>)>, Error>where T: DeserializeOwned,

source

pub async fn get_protobuf_or_bincode_cell<B, P>( &mut self, table: &str, key: String ) -> Result<CellData<B, P>, Error>where B: DeserializeOwned, P: Message + Default,

source

pub async fn get_protobuf_or_bincode_cells<'a, B, P>( &mut self, table: &'a str, row_keys: impl IntoIterator<Item = String> ) -> Result<impl Iterator<Item = (String, CellData<B, P>)> + 'a, Error>where B: DeserializeOwned, P: Message + Default,

source

pub async fn put_bincode_cells<T>( &mut self, table: &str, cells: &[(String, T)] ) -> Result<usize, Error>where T: Serialize,

source

pub async fn put_protobuf_cells<T>( &mut self, table: &str, cells: &[(String, T)] ) -> Result<usize, Error>where T: Message,

Auto Trait Implementations§

§

impl<F> !RefUnwindSafe for BigTable<F>

§

impl<F> Send for BigTable<F>where F: Send,

§

impl<F> Sync for BigTable<F>where F: Sync,

§

impl<F> Unpin for BigTable<F>where F: Unpin,

§

impl<F> !UnwindSafe for BigTable<F>

Blanket Implementations§

source§

impl<T> AbiExample for T

source§

default fn example() -> T

source§

impl<T> AbiExample for T

source§

default fn example() -> T

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more