pub struct ColumnCatalog {
pub column_desc: ColumnDesc,
pub is_hidden: bool,
}Fields§
§column_desc: ColumnDescImplementations§
Source§impl ColumnCatalog
impl ColumnCatalog
pub fn visible(column_desc: ColumnDesc) -> Self
Get the column catalog’s is hidden.
Sourcepub fn is_generated(&self) -> bool
pub fn is_generated(&self) -> bool
If the column is a generated column
pub fn can_dml(&self) -> bool
Sourcepub fn is_defined_in_columns_clause(&self) -> bool
pub fn is_defined_in_columns_clause(&self) -> bool
Returns whether the column is defined by user within the column definition clause
in the CREATE TABLE statement.
Sourcepub fn generated_expr(&self) -> Option<&ExprNode>
pub fn generated_expr(&self) -> Option<&ExprNode>
If the column is a generated column
Sourcepub fn is_connector_additional_column(&self) -> bool
pub fn is_connector_additional_column(&self) -> bool
If the columns is an INCLUDE ... AS ... connector column.
Sourcepub fn to_protobuf(&self) -> PbColumnCatalog
pub fn to_protobuf(&self) -> PbColumnCatalog
Convert column catalog to proto
Sourcepub fn row_id_column() -> Self
pub fn row_id_column() -> Self
Creates a row ID column (for implicit primary key).
It’ll always have the ID 0.
pub fn is_rw_sys_column(&self) -> bool
pub fn rw_timestamp_column() -> Self
pub fn is_rw_timestamp_column(&self) -> bool
Sourcepub fn debezium_cdc_source_cols() -> [Self; 3]
pub fn debezium_cdc_source_cols() -> [Self; 3]
Note: these columns are added in SourceStreamChunkRowWriter::do_action.
May also look for the usage of SourceColumnType.
pub fn is_row_id_column(&self) -> bool
Source§impl ColumnCatalog
impl ColumnCatalog
Methods from Deref<Target = ColumnDesc>§
Sourcepub fn to_protobuf(&self) -> PbColumnDesc
pub fn to_protobuf(&self) -> PbColumnDesc
Convert to proto
pub fn is_generated(&self) -> bool
Trait Implementations§
Source§impl AsRef<ColumnDesc> for ColumnCatalog
impl AsRef<ColumnDesc> for ColumnCatalog
Source§fn as_ref(&self) -> &ColumnDesc
fn as_ref(&self) -> &ColumnDesc
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ColumnCatalog
impl Clone for ColumnCatalog
Source§fn clone(&self) -> ColumnCatalog
fn clone(&self) -> ColumnCatalog
Returns a duplicate 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 Debug for ColumnCatalog
impl Debug for ColumnCatalog
Source§impl Deref for ColumnCatalog
impl Deref for ColumnCatalog
Source§impl FieldLike for ColumnCatalog
impl FieldLike for ColumnCatalog
Source§impl From<ColumnCatalog> for ColumnCatalog
impl From<ColumnCatalog> for ColumnCatalog
Source§fn from(prost: PbColumnCatalog) -> Self
fn from(prost: PbColumnCatalog) -> Self
Converts to this type from the input type.
Source§impl Hash for ColumnCatalog
impl Hash for ColumnCatalog
Source§impl PartialEq for ColumnCatalog
impl PartialEq for ColumnCatalog
impl Eq for ColumnCatalog
impl StructuralPartialEq for ColumnCatalog
Auto Trait Implementations§
impl Freeze for ColumnCatalog
impl RefUnwindSafe for ColumnCatalog
impl Send for ColumnCatalog
impl Sync for ColumnCatalog
impl Unpin for ColumnCatalog
impl UnwindSafe for ColumnCatalog
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,
§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,
Forward to the method defined on the type
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,
Forward to the method defined on the type
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
Compare self to
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
Compare self to
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
Checks if this value is equivalent to the given key. Read more
§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.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> SameOrElseExt for Twhere
T: Eq,
impl<T> SameOrElseExt for Twhere
T: Eq,
Source§fn same_or_else(self, other: T, f: impl FnOnce() -> T) -> T
fn same_or_else(self, other: T, f: impl FnOnce() -> T) -> T
Check if
self and other are equal, if so, return self, otherwise return the result of f().