[−][src]Struct bigquery_storage::client::ReadSessionBuilder
A builder for ReadSession.
When in doubt about what a field does, please refer to CreateReadSessionRequest and the official API documentation.
Methods
impl<'a, T> ReadSessionBuilder<'a, T>[src]
pub fn data_format(self, data_format: DataFormat) -> Self[src]
Sets the data format of the output data. Defaults to Arrow if not set.
pub fn snapshot_time(self, snapshot_time: Timestamp) -> Self[src]
Sets the snapshot time of the table. If not set, interpreted as now.
pub fn selected_fields(self, selected_fields: Vec<String>) -> Self[src]
Names of the fields in the table that should be read. If empty or not set, all fields will be read. If the specified field is a nested field, all the sub-fields in the field will be selected. The output field order is unrelated to the order of fields in selected_fields.
pub fn row_restriction(self, row_restriction: String) -> Self[src]
SQL text filtering statement, similar to a WHERE clause in a query. Aggregates are not supported.
Examples:
-
int_field > 5 -
date_field = CAST('2014-9-27' as DATE) -
nullable_field is not NULL -
st_equals(geo_field, st_geofromtext("POINT(2, 2)")) -
numeric_field BETWEEN 1.0 AND 5.0
pub fn max_stream_count(self, max_stream_count: i32) -> Self[src]
Max initial number of streams. If unset or zero, the server 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. Error will be returned if the max count is greater than the current system max limit of 1,000.
pub fn parent_project_id(self, parent_project_id: String) -> Self[src]
The request project that owns the session. If not set, defaults to the project owning the table to be read.
impl<'a, C> ReadSessionBuilder<'a, C> where
C: Connect + Clone + Send + Sync + 'static, [src]
C: Connect + Clone + Send + Sync + 'static,
pub async fn build(self) -> Result<ReadSession<'a, C>, Error>[src]
Build the ReadSession. This will hit Google's API and
prepare the desired read streams.
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for ReadSessionBuilder<'a, T>
impl<'a, T> Send for ReadSessionBuilder<'a, T> where
T: Send,
T: Send,
impl<'a, T> Sync for ReadSessionBuilder<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for ReadSessionBuilder<'a, T>
impl<'a, T> !UnwindSafe for ReadSessionBuilder<'a, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
fn cast(self) -> U
impl<T> From<T> for T[src]
impl<T> FromCast<T> for T
fn from_cast(t: T) -> T
impl<T> Instrument for T[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> IntoRequest<T> for T[src]
fn into_request(self) -> Request<T>[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>, [src]
S: Into<Dispatch>,