pub struct SystemParamsReader<I = PbSystemParams> {
inner: I,
}
Expand description
The wrapper delegating reads on risingwave_pb::meta::SystemParams
.
See SystemParamsRead
for more details.
Fields§
§inner: I
Implementations§
source§impl<I> SystemParamsReader<I>where
I: Borrow<PbSystemParams>,
impl<I> SystemParamsReader<I>where
I: Borrow<PbSystemParams>,
pub fn new(inner: I) -> Self
sourcepub fn as_ref(&self) -> SystemParamsReader<&PbSystemParams>
pub fn as_ref(&self) -> SystemParamsReader<&PbSystemParams>
Return a new reader with the reference to the inner system params.
fn inner(&self) -> &PbSystemParams
Trait Implementations§
source§impl<I: Clone> Clone for SystemParamsReader<I>
impl<I: Clone> Clone for SystemParamsReader<I>
source§fn clone(&self) -> SystemParamsReader<I>
fn clone(&self) -> SystemParamsReader<I>
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 moresource§impl<I> Debug for SystemParamsReader<I>where
I: Borrow<PbSystemParams>,
impl<I> Debug for SystemParamsReader<I>where
I: Borrow<PbSystemParams>,
source§impl<I> From<I> for SystemParamsReader<I>where
I: Borrow<PbSystemParams>,
impl<I> From<I> for SystemParamsReader<I>where
I: Borrow<PbSystemParams>,
source§impl<I: PartialEq> PartialEq for SystemParamsReader<I>
impl<I: PartialEq> PartialEq for SystemParamsReader<I>
source§impl<I> SystemParamsRead for SystemParamsReader<I>where
I: Borrow<PbSystemParams>,
impl<I> SystemParamsRead for SystemParamsReader<I>where
I: Borrow<PbSystemParams>,
-
Unwrap the field if it always exists. For example, if a parameter is introduced before the initial public release.
-
Otherwise, specify the fallback logic when the field is missing.
source§fn barrier_interval_ms(&self) -> u32
fn barrier_interval_ms(&self) -> u32
The interval of periodic barrier.
source§fn checkpoint_frequency(&self) -> u64
fn checkpoint_frequency(&self) -> u64
There will be a checkpoint for every n barriers.
source§fn parallel_compact_size_mb(&self) -> u32
fn parallel_compact_size_mb(&self) -> u32
The size of parallel task for one compact/flush job.
source§fn sstable_size_mb(&self) -> u32
fn sstable_size_mb(&self) -> u32
Target size of the Sstable.
source§fn block_size_kb(&self) -> u32
fn block_size_kb(&self) -> u32
Size of each block in bytes in SST.
source§fn bloom_false_positive(&self) -> f64
fn bloom_false_positive(&self) -> f64
False positive probability of bloom filter.
source§fn state_store(&self) -> &str
fn state_store(&self) -> &str
URL for the state store
source§fn data_directory(&self) -> &str
fn data_directory(&self) -> &str
Remote directory for storing data and metadata objects.
source§fn use_new_object_prefix_strategy(&self) -> bool
fn use_new_object_prefix_strategy(&self) -> bool
Whether to split object prefix.
source§fn backup_storage_url(&self) -> &str
fn backup_storage_url(&self) -> &str
Remote storage url for storing snapshots.
source§fn backup_storage_directory(&self) -> &str
fn backup_storage_directory(&self) -> &str
Remote directory for storing snapshots.
source§fn max_concurrent_creating_streaming_jobs(&self) -> u32
fn max_concurrent_creating_streaming_jobs(&self) -> u32
Max number of concurrent creating streaming jobs.
source§fn pause_on_next_bootstrap(&self) -> bool
fn pause_on_next_bootstrap(&self) -> bool
Whether to pause all data sources on next bootstrap.
source§fn enable_tracing(&self) -> bool
fn enable_tracing(&self) -> bool
Whether to enable distributed tracing.
source§fn license_key(&self) -> LicenseKeyRef<'_>
fn license_key(&self) -> LicenseKeyRef<'_>
The license key to activate enterprise features.
source§fn time_travel_retention_ms(&self) -> u64
fn time_travel_retention_ms(&self) -> u64
The data retention period for time travel.
source§fn get_all(&self) -> Vec<ParameterInfo>
fn get_all(&self) -> Vec<ParameterInfo>
Return the information of all parameters.
impl<I> StructuralPartialEq for SystemParamsReader<I>
Auto Trait Implementations§
impl<I> Freeze for SystemParamsReader<I>where
I: Freeze,
impl<I> RefUnwindSafe for SystemParamsReader<I>where
I: RefUnwindSafe,
impl<I> Send for SystemParamsReader<I>where
I: Send,
impl<I> Sync for SystemParamsReader<I>where
I: Sync,
impl<I> Unpin for SystemParamsReader<I>where
I: Unpin,
impl<I> UnwindSafe for SystemParamsReader<I>where
I: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§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> 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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§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
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
source§impl<M> MetricVecRelabelExt for M
impl<M> MetricVecRelabelExt for M
source§fn relabel(
self,
metric_level: MetricLevel,
relabel_threshold: MetricLevel,
) -> RelabeledMetricVec<M>
fn relabel( self, metric_level: MetricLevel, relabel_threshold: MetricLevel, ) -> RelabeledMetricVec<M>
Equivalent to
RelabeledMetricVec::with_metric_level
.source§fn relabel_n(
self,
metric_level: MetricLevel,
relabel_threshold: MetricLevel,
relabel_num: usize,
) -> RelabeledMetricVec<M>
fn relabel_n( self, metric_level: MetricLevel, relabel_threshold: MetricLevel, relabel_num: usize, ) -> RelabeledMetricVec<M>
Equivalent to
RelabeledMetricVec::with_metric_level_relabel_n
.source§fn relabel_debug_1(
self,
relabel_threshold: MetricLevel,
) -> RelabeledMetricVec<M>
fn relabel_debug_1( self, relabel_threshold: MetricLevel, ) -> RelabeledMetricVec<M>
Equivalent to
RelabeledMetricVec::with_metric_level_relabel_n
with metric_level
set to
MetricLevel::Debug
and relabel_num
set to 1.