Enum google_api_proto::google::cloud::bigquery::storage::v1beta1::ShardingStrategy
source · #[repr(i32)]pub enum ShardingStrategy {
Unspecified = 0,
Liquid = 1,
Balanced = 2,
}
Expand description
Strategy for distributing data among multiple streams in a read session.
Variants§
Unspecified = 0
Same as LIQUID.
Liquid = 1
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 = 2
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§
source§impl ShardingStrategy
impl ShardingStrategy
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for ShardingStrategy
impl Clone for ShardingStrategy
source§fn clone(&self) -> ShardingStrategy
fn clone(&self) -> ShardingStrategy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ShardingStrategy
impl Debug for ShardingStrategy
source§impl Default for ShardingStrategy
impl Default for ShardingStrategy
source§fn default() -> ShardingStrategy
fn default() -> ShardingStrategy
source§impl From<ShardingStrategy> for i32
impl From<ShardingStrategy> for i32
source§fn from(value: ShardingStrategy) -> i32
fn from(value: ShardingStrategy) -> i32
source§impl Hash for ShardingStrategy
impl Hash for ShardingStrategy
source§impl Ord for ShardingStrategy
impl Ord for ShardingStrategy
source§fn cmp(&self, other: &ShardingStrategy) -> Ordering
fn cmp(&self, other: &ShardingStrategy) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for ShardingStrategy
impl PartialEq for ShardingStrategy
source§fn eq(&self, other: &ShardingStrategy) -> bool
fn eq(&self, other: &ShardingStrategy) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ShardingStrategy
impl PartialOrd for ShardingStrategy
source§fn partial_cmp(&self, other: &ShardingStrategy) -> Option<Ordering>
fn partial_cmp(&self, other: &ShardingStrategy) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for ShardingStrategy
impl TryFrom<i32> for ShardingStrategy
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<ShardingStrategy, UnknownEnumValue>
fn try_from(value: i32) -> Result<ShardingStrategy, UnknownEnumValue>
impl Copy for ShardingStrategy
impl Eq for ShardingStrategy
impl StructuralPartialEq for ShardingStrategy
Auto Trait Implementations§
impl Freeze for ShardingStrategy
impl RefUnwindSafe for ShardingStrategy
impl Send for ShardingStrategy
impl Sync for ShardingStrategy
impl Unpin for ShardingStrategy
impl UnwindSafe for ShardingStrategy
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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