Enum gapi_grpc::google::cloud::bigquery::storage::v1beta1::ShardingStrategy[][src]

#[repr(i32)]pub enum ShardingStrategy {
    Unspecified,
    Liquid,
    Balanced,
}

Strategy for distributing data among multiple streams in a read session.

Variants

Unspecified

Same as LIQUID.

Liquid

Assigns data to each stream based on the client’s read rate. The faster the client reads from a stream, the more data is assigned to the stream. In this strategy, it’s possible to read all data from a single stream even if there are other streams present.

Balanced

Assigns data to each stream such that roughly the same number of rows can be read from each stream. Because the server-side unit for assigning data is collections of rows, the API does not guarantee that each stream will return the same number or rows. Additionally, the limits are enforced based on the number of pre-filtering rows, so some filters can lead to lopsided assignments.

Implementations

impl ShardingStrategy[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of ShardingStrategy.

pub fn from_i32(value: i32) -> Option<ShardingStrategy>[src]

Converts an i32 to a ShardingStrategy, or None if value is not a valid variant.

Trait Implementations

impl Clone for ShardingStrategy[src]

impl Copy for ShardingStrategy[src]

impl Debug for ShardingStrategy[src]

impl Default for ShardingStrategy[src]

impl Eq for ShardingStrategy[src]

impl From<ShardingStrategy> for i32[src]

impl Hash for ShardingStrategy[src]

impl Ord for ShardingStrategy[src]

impl PartialEq<ShardingStrategy> for ShardingStrategy[src]

impl PartialOrd<ShardingStrategy> for ShardingStrategy[src]

impl StructuralEq for ShardingStrategy[src]

impl StructuralPartialEq for ShardingStrategy[src]

Auto Trait Implementations

impl RefUnwindSafe for ShardingStrategy

impl Send for ShardingStrategy

impl Sync for ShardingStrategy

impl Unpin for ShardingStrategy

impl UnwindSafe for ShardingStrategy

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument 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>, 
[src]

impl<T> WithSubscriber for T[src]