Struct mz_persist_client::batch::BatchBuilderConfig
source · pub struct BatchBuilderConfig {Show 17 fields
writer_key: WriterKey,
pub(crate) blob_target_size: usize,
pub(crate) batch_delete_enabled: bool,
pub(crate) batch_builder_max_outstanding_parts: usize,
pub(crate) batch_columnar_format: BatchColumnarFormat,
pub(crate) batch_columnar_format_percent: usize,
pub(crate) inline_writes_single_max_bytes: usize,
pub(crate) stats_collection_enabled: bool,
pub(crate) stats_budget: usize,
pub(crate) stats_untrimmable_columns: Arc<UntrimmableColumns>,
pub(crate) write_diffs_sum: bool,
pub(crate) encoding_config: EncodingConfig,
pub(crate) preferred_order: RunOrder,
pub(crate) record_schema_id: bool,
pub(crate) structured_key_lower_len: usize,
pub(crate) run_length_limit: usize,
pub(crate) max_runs: Option<usize>,
}
Expand description
A snapshot of dynamic configs to make it easier to reason about an individual run of BatchBuilder.
Fields§
§writer_key: WriterKey
§blob_target_size: usize
§batch_delete_enabled: bool
§batch_builder_max_outstanding_parts: usize
§batch_columnar_format: BatchColumnarFormat
§batch_columnar_format_percent: usize
§inline_writes_single_max_bytes: usize
§stats_collection_enabled: bool
§stats_budget: usize
§stats_untrimmable_columns: Arc<UntrimmableColumns>
§write_diffs_sum: bool
§encoding_config: EncodingConfig
§preferred_order: RunOrder
§record_schema_id: bool
§structured_key_lower_len: usize
§run_length_limit: usize
§max_runs: Option<usize>
The number of runs to cap the built batch at, or None if we should continue to generate one run per part for unordered batches. See the config definition for details.
Implementations§
source§impl BatchBuilderConfig
impl BatchBuilderConfig
sourcepub fn new(value: &PersistConfig, shard_id: ShardId) -> Self
pub fn new(value: &PersistConfig, shard_id: ShardId) -> Self
Initialize a batch builder config based on a snapshot of the Persist config.
fn part_write_columnar_data(&self) -> bool
Trait Implementations§
source§impl Clone for BatchBuilderConfig
impl Clone for BatchBuilderConfig
source§fn clone(&self) -> BatchBuilderConfig
fn clone(&self) -> BatchBuilderConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for BatchBuilderConfig
impl RefUnwindSafe for BatchBuilderConfig
impl Send for BatchBuilderConfig
impl Sync for BatchBuilderConfig
impl Unpin for BatchBuilderConfig
impl UnwindSafe for BatchBuilderConfig
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
Wrap the input message
T
in a tonic::Request
Creates a shared type from an unshared type.
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ProgressEventTimestamp for T
impl<T> ProgressEventTimestamp for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.source§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
The method of
std::ops::AddAssign
, for types that do not implement AddAssign
.