pub struct ReadTableRequest {
pub session_id: String,
pub path: String,
pub key_range: Option<KeyRange>,
pub columns: Vec<String>,
pub ordered: bool,
pub row_limit: u64,
pub use_snapshot: i32,
pub batch_limit_bytes: u64,
pub batch_limit_rows: u64,
pub return_not_null_data_as_optional: i32,
}
Expand description
Request to read table (without SQL)
Fields§
§session_id: String
Session identifier
path: String
Path to table to read
key_range: Option<KeyRange>
Primary key range to read
columns: Vec<String>
Output columns
ordered: bool
Require ordered reading
row_limit: u64
Limits row count to read
use_snapshot: i32
Use a server-side snapshot
batch_limit_bytes: u64
Server-side best-effort policy. Can be used as a hint to limit the size of batches sent from a server. If both are specified, the server chooses the smaller one. The limits are not strict, so batch size can be slightly greater than any of the limits
batch_limit_rows: u64
§return_not_null_data_as_optional: i32
Implementations§
Source§impl ReadTableRequest
impl ReadTableRequest
Sourcepub fn use_snapshot(&self) -> Status
pub fn use_snapshot(&self) -> Status
Returns the enum value of use_snapshot
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_use_snapshot(&mut self, value: Status)
pub fn set_use_snapshot(&mut self, value: Status)
Sets use_snapshot
to the provided enum value.
Sourcepub fn return_not_null_data_as_optional(&self) -> Status
pub fn return_not_null_data_as_optional(&self) -> Status
Returns the enum value of return_not_null_data_as_optional
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_return_not_null_data_as_optional(&mut self, value: Status)
pub fn set_return_not_null_data_as_optional(&mut self, value: Status)
Sets return_not_null_data_as_optional
to the provided enum value.
Trait Implementations§
Source§impl Clone for ReadTableRequest
impl Clone for ReadTableRequest
Source§fn clone(&self) -> ReadTableRequest
fn clone(&self) -> ReadTableRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ReadTableRequest
impl Debug for ReadTableRequest
Source§impl Default for ReadTableRequest
impl Default for ReadTableRequest
Source§impl<'de> Deserialize<'de> for ReadTableRequest
impl<'de> Deserialize<'de> for ReadTableRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Message for ReadTableRequest
impl Message for ReadTableRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for ReadTableRequest
impl PartialEq for ReadTableRequest
Source§impl Serialize for ReadTableRequest
impl Serialize for ReadTableRequest
impl StructuralPartialEq for ReadTableRequest
Auto Trait Implementations§
impl Freeze for ReadTableRequest
impl RefUnwindSafe for ReadTableRequest
impl Send for ReadTableRequest
impl Sync for ReadTableRequest
impl Unpin for ReadTableRequest
impl UnwindSafe for ReadTableRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request