pub struct TableWatermarks {
pub epoch_watermarks: Vec<EpochNewWatermarks>,
pub is_ascending: bool,
pub is_non_pk_prefix: bool,
pub raw_watermark_serde_type: i32,
}Expand description
Table watermark is a lighter weight range delete introduced in
https://github.com/risingwavelabs/risingwave/issues/13148
It means the lowest (or highest when is_ascending is false) visible
keys in the table within a vnode. Keys lower (or higher) than the
table watermark is invisible and will be cleaned in later compaction.
Fields§
§epoch_watermarks: Vec<EpochNewWatermarks>Table watermarks of a state table from all vnodes written in multiple epochs. Epochs should be sorted in ascending order, which means earlier epoch at the front
is_ascending: boolThe direction of the table watermark.
is_non_pk_prefix: boolThe table watermark is non-pk prefix table watermark. Deprecated. use WatermarkSerdeType instead;
raw_watermark_serde_type: i32Implementations§
Source§impl TableWatermarks
impl TableWatermarks
Sourcepub fn raw_watermark_serde_type(&self) -> WatermarkSerdeType
pub fn raw_watermark_serde_type(&self) -> WatermarkSerdeType
Returns the enum value of raw_watermark_serde_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_raw_watermark_serde_type(&mut self, value: WatermarkSerdeType)
pub fn set_raw_watermark_serde_type(&mut self, value: WatermarkSerdeType)
Sets raw_watermark_serde_type to the provided enum value.
Source§impl TableWatermarks
impl TableWatermarks
pub fn get_epoch_watermarks(&self) -> &Vec<EpochNewWatermarks>
pub fn get_is_ascending(&self) -> bool
pub fn get_is_non_pk_prefix(&self) -> bool
pub fn get_raw_watermark_serde_type( &self, ) -> Result<WatermarkSerdeType, PbFieldNotFound>
Trait Implementations§
Source§impl Clone for TableWatermarks
impl Clone for TableWatermarks
Source§fn clone(&self) -> TableWatermarks
fn clone(&self) -> TableWatermarks
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TableWatermarks
impl Debug for TableWatermarks
Source§impl Default for TableWatermarks
impl Default for TableWatermarks
Source§impl<'de> Deserialize<'de> for TableWatermarks
impl<'de> Deserialize<'de> for TableWatermarks
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Message for TableWatermarks
impl Message for TableWatermarks
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for TableWatermarks
impl PartialEq for TableWatermarks
Source§impl Serialize for TableWatermarks
impl Serialize for TableWatermarks
impl Eq for TableWatermarks
impl StructuralPartialEq for TableWatermarks
Auto Trait Implementations§
impl Freeze for TableWatermarks
impl RefUnwindSafe for TableWatermarks
impl Send for TableWatermarks
impl Sync for TableWatermarks
impl Unpin for TableWatermarks
impl UnwindSafe for TableWatermarks
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any.§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.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<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> 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>
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>
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>
T in a tonic::Request