Struct google_api_proto::google::spanner::v1::PartitionReadRequest
source · pub struct PartitionReadRequest {
pub session: String,
pub transaction: Option<TransactionSelector>,
pub table: String,
pub index: String,
pub columns: Vec<String>,
pub key_set: Option<KeySet>,
pub partition_options: Option<PartitionOptions>,
}
Expand description
The request for [PartitionRead][google.spanner.v1.Spanner.PartitionRead]
Fields§
§session: String
Required. The session used to create the partitions.
transaction: Option<TransactionSelector>
Read only snapshot transactions are supported, read/write and single use transactions are not.
table: String
Required. The name of the table in the database to be read.
index: String
If non-empty, the name of an index on [table][google.spanner.v1.PartitionReadRequest.table]. This index is used instead of the table primary key when interpreting [key_set][google.spanner.v1.PartitionReadRequest.key_set] and sorting result rows. See [key_set][google.spanner.v1.PartitionReadRequest.key_set] for further information.
columns: Vec<String>
The columns of [table][google.spanner.v1.PartitionReadRequest.table] to be returned for each row matching this request.
key_set: Option<KeySet>
Required. key_set
identifies the rows to be yielded. key_set
names the
primary keys of the rows in
[table][google.spanner.v1.PartitionReadRequest.table] to be yielded, unless
[index][google.spanner.v1.PartitionReadRequest.index] is present. If
[index][google.spanner.v1.PartitionReadRequest.index] is present, then
[key_set][google.spanner.v1.PartitionReadRequest.key_set] instead names
index keys in [index][google.spanner.v1.PartitionReadRequest.index].
It is not an error for the key_set
to name rows that do not
exist in the database. Read yields nothing for nonexistent rows.
partition_options: Option<PartitionOptions>
Additional options that affect how many partitions are created.
Trait Implementations§
source§impl Clone for PartitionReadRequest
impl Clone for PartitionReadRequest
source§fn clone(&self) -> PartitionReadRequest
fn clone(&self) -> PartitionReadRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PartitionReadRequest
impl Debug for PartitionReadRequest
source§impl Default for PartitionReadRequest
impl Default for PartitionReadRequest
source§impl Message for PartitionReadRequest
impl Message for PartitionReadRequest
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 PartitionReadRequest
impl PartialEq for PartitionReadRequest
source§fn eq(&self, other: &PartitionReadRequest) -> bool
fn eq(&self, other: &PartitionReadRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PartitionReadRequest
Auto Trait Implementations§
impl !Freeze for PartitionReadRequest
impl RefUnwindSafe for PartitionReadRequest
impl Send for PartitionReadRequest
impl Sync for PartitionReadRequest
impl Unpin for PartitionReadRequest
impl UnwindSafe for PartitionReadRequest
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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