#[non_exhaustive]pub struct PartitionOptions {
pub partition_size_bytes: i64,
pub max_partitions: i64,
/* private fields */
}Expand description
Options for a PartitionQueryRequest and PartitionReadRequest.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.partition_size_bytes: i64Note: This hint is currently ignored by PartitionQuery and
PartitionRead requests.
The desired data size for each partition generated. The default for this option is currently 1 GiB. This is only a hint. The actual size of each partition can be smaller or larger than this size request.
max_partitions: i64Note: This hint is currently ignored by PartitionQuery and
PartitionRead requests.
The desired maximum number of partitions to return. For example, this might be set to the number of workers available. The default for this option is currently 10,000. The maximum value is currently 200,000. This is only a hint. The actual number of partitions returned can be smaller or larger than this maximum count request.
Implementations§
Source§impl PartitionOptions
impl PartitionOptions
Sourcepub fn set_partition_size_bytes<T: Into<i64>>(self, v: T) -> Self
pub fn set_partition_size_bytes<T: Into<i64>>(self, v: T) -> Self
Sets the value of partition_size_bytes.
Sourcepub fn set_max_partitions<T: Into<i64>>(self, v: T) -> Self
pub fn set_max_partitions<T: Into<i64>>(self, v: T) -> Self
Sets the value of max_partitions.
Trait Implementations§
Source§impl Clone for PartitionOptions
impl Clone for PartitionOptions
Source§fn clone(&self) -> PartitionOptions
fn clone(&self) -> PartitionOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PartitionOptions
impl Debug for PartitionOptions
Source§impl Default for PartitionOptions
impl Default for PartitionOptions
Source§fn default() -> PartitionOptions
fn default() -> PartitionOptions
Source§impl Message for PartitionOptions
impl Message for PartitionOptions
Source§impl PartialEq for PartitionOptions
impl PartialEq for PartitionOptions
Source§fn eq(&self, other: &PartitionOptions) -> bool
fn eq(&self, other: &PartitionOptions) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PartitionOptions
Auto Trait Implementations§
impl Freeze for PartitionOptions
impl RefUnwindSafe for PartitionOptions
impl Send for PartitionOptions
impl Sync for PartitionOptions
impl Unpin for PartitionOptions
impl UnsafeUnpin for PartitionOptions
impl UnwindSafe for PartitionOptions
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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