pub struct ReadRowsResponse {
pub chunks: Vec<CellChunk>,
pub last_scanned_row_key: Vec<u8>,
pub request_stats: Option<RequestStats>,
}
Expand description
Response message for Bigtable.ReadRows.
Fields§
§chunks: Vec<CellChunk>
A collection of a row’s contents as part of the read request.
last_scanned_row_key: Vec<u8>
Optionally the server might return the row key of the last row it has scanned. The client can use this to construct a more efficient retry request if needed: any row keys or portions of ranges less than this row key can be dropped from the request. This is primarily useful for cases where the server has read a lot of data that was filtered out since the last committed row key, allowing the client to skip that work on a retry.
request_stats: Option<RequestStats>
If requested, provide enhanced query performance statistics. The semantics dictate:
- request_stats is empty on every (streamed) response, except
- request_stats has non-empty information after all chunks have been
streamed, where the ReadRowsResponse message only contains
request_stats.
- For example, if a read request would have returned an empty response instead a single ReadRowsResponse is streamed with empty chunks and request_stats filled.
Visually, response messages will stream as follows: … -> {chunks: […]} -> {chunks: [], request_stats: {…}} _/ ___________/ Primary response Trailer of RequestStats info
Or if the read did not return any values: {chunks: [], request_stats: {…}} ________________________________/ Trailer of RequestStats info
Trait Implementations§
Source§impl Clone for ReadRowsResponse
impl Clone for ReadRowsResponse
Source§fn clone(&self) -> ReadRowsResponse
fn clone(&self) -> ReadRowsResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ReadRowsResponse
impl Debug for ReadRowsResponse
Source§impl Default for ReadRowsResponse
impl Default for ReadRowsResponse
Source§impl Message for ReadRowsResponse
impl Message for ReadRowsResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl PartialEq for ReadRowsResponse
impl PartialEq for ReadRowsResponse
impl StructuralPartialEq for ReadRowsResponse
Auto Trait Implementations§
impl Freeze for ReadRowsResponse
impl RefUnwindSafe for ReadRowsResponse
impl Send for ReadRowsResponse
impl Sync for ReadRowsResponse
impl Unpin for ReadRowsResponse
impl UnwindSafe for ReadRowsResponse
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