[][src]Struct gcp_client::google::cloud::bigquery::storage::v1beta1::CreateReadSessionRequest

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,
}

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.

sharding_strategy: i32

The strategy to use for distributing data among multiple streams. Currently defaults to liquid sharding.

Implementations

impl CreateReadSessionRequest[src]

pub fn format(&self) -> DataFormat[src]

Returns the enum value of format, or the default if the field is set to an invalid enum value.

pub fn set_format(&mut self, value: DataFormat)[src]

Sets format to the provided enum value.

pub fn sharding_strategy(&self) -> ShardingStrategy[src]

Returns the enum value of sharding_strategy, or the default if the field is set to an invalid enum value.

pub fn set_sharding_strategy(&mut self, value: ShardingStrategy)[src]

Sets sharding_strategy to the provided enum value.

Trait Implementations

impl Clone for CreateReadSessionRequest[src]

impl Debug for CreateReadSessionRequest[src]

impl Default for CreateReadSessionRequest[src]

impl Message for CreateReadSessionRequest[src]

impl PartialEq<CreateReadSessionRequest> for CreateReadSessionRequest[src]

impl StructuralPartialEq for CreateReadSessionRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

impl<T> WithSubscriber for T[src]