Struct google_api_proto::google::cloud::bigquery::storage::v1beta1::CreateReadSessionRequest
source · pub struct CreateReadSessionRequest {
pub table_reference: Option<TableReference>,
pub parent: String,
pub table_modifiers: Option<TableModifiers>,
pub requested_streams: i32,
pub read_options: Option<TableReadOptions>,
pub format: i32,
pub sharding_strategy: i32,
}
Expand description
Creates a new read session, which may include additional options such as requested parallelism, projection filters and constraints.
Fields§
§table_reference: Option<TableReference>
Required. Reference to the table to read.
parent: String
Required. String of the form projects/{project_id}
indicating the
project this ReadSession is associated with. This is the project that will
be billed for usage.
table_modifiers: Option<TableModifiers>
Any modifiers to the Table (e.g. snapshot timestamp).
requested_streams: i32
Initial number of streams. If unset or 0, we will provide a value of streams so as to produce reasonable throughput. Must be non-negative. The number of streams may be lower than the requested number, depending on the amount parallelism that is reasonable for the table and the maximum amount of parallelism allowed by the system.
Streams must be read starting from offset 0.
read_options: Option<TableReadOptions>
Read options for this session (e.g. column selection, filters).
format: i32
Data output format. Currently default to Avro. DATA_FORMAT_UNSPECIFIED not supported.
sharding_strategy: i32
The strategy to use for distributing data among multiple streams. Currently defaults to liquid sharding.
Implementations§
source§impl CreateReadSessionRequest
impl CreateReadSessionRequest
sourcepub fn format(&self) -> DataFormat
pub fn format(&self) -> DataFormat
Returns the enum value of format
, or the default if the field is set to an invalid enum value.
sourcepub fn set_format(&mut self, value: DataFormat)
pub fn set_format(&mut self, value: DataFormat)
Sets format
to the provided enum value.
sourcepub fn sharding_strategy(&self) -> ShardingStrategy
pub fn sharding_strategy(&self) -> ShardingStrategy
Returns the enum value of sharding_strategy
, or the default if the field is set to an invalid enum value.
sourcepub fn set_sharding_strategy(&mut self, value: ShardingStrategy)
pub fn set_sharding_strategy(&mut self, value: ShardingStrategy)
Sets sharding_strategy
to the provided enum value.
Trait Implementations§
source§impl Clone for CreateReadSessionRequest
impl Clone for CreateReadSessionRequest
source§fn clone(&self) -> CreateReadSessionRequest
fn clone(&self) -> CreateReadSessionRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateReadSessionRequest
impl Debug for CreateReadSessionRequest
source§impl Default for CreateReadSessionRequest
impl Default for CreateReadSessionRequest
source§impl Message for CreateReadSessionRequest
impl Message for CreateReadSessionRequest
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 CreateReadSessionRequest
impl PartialEq for CreateReadSessionRequest
source§fn eq(&self, other: &CreateReadSessionRequest) -> bool
fn eq(&self, other: &CreateReadSessionRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateReadSessionRequest
Auto Trait Implementations§
impl Freeze for CreateReadSessionRequest
impl RefUnwindSafe for CreateReadSessionRequest
impl Send for CreateReadSessionRequest
impl Sync for CreateReadSessionRequest
impl Unpin for CreateReadSessionRequest
impl UnwindSafe for CreateReadSessionRequest
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