pub struct StreamSourceInfo {Show 15 fields
pub row_format: i32,
pub row_schema_location: String,
pub use_schema_registry: bool,
pub proto_message_name: String,
pub csv_delimiter: i32,
pub csv_has_header: bool,
pub format: i32,
pub row_encode: i32,
pub name_strategy: i32,
pub key_message_name: Option<String>,
pub external_table: Option<ExternalTableDesc>,
pub cdc_source_job: bool,
pub is_distributed: bool,
pub format_encode_options: BTreeMap<String, String>,
pub format_encode_secret_refs: BTreeMap<String, SecretRef>,
}
Fields§
§row_format: i32
deprecated
row_schema_location: String
§use_schema_registry: bool
This means use confluent schema registry and is false
for aws glue schema registry.
Eventually we will deprecate it and rely on enum SchemaLocation
derived from format_encode_options
below.
- schema.location false
- schema.registry true
- aws.glue.schema_arn false
proto_message_name: String
§csv_delimiter: i32
§csv_has_header: bool
§format: i32
§row_encode: i32
§name_strategy: i32
§key_message_name: Option<String>
§external_table: Option<ExternalTableDesc>
§cdc_source_job: bool
This field should now be called is_shared
. Not renamed for backwards
compatibility.
Whether the stream source is a shared source (it has a streaming job). This is related with RFC: Reusable Source Executor.
Currently, the following sources can be shared:
- Direct CDC sources (mysql & postgresql & sqlserver)
- MQ sources (Kafka)
is_distributed: bool
Only used when cdc_source_job
is true
.
If false
, requires_singleton
will be set in the stream plan.
- Direct CDC sources:
false
- MQ sources (Kafka):
true
format_encode_options: BTreeMap<String, String>
Options specified by user in the FORMAT ENCODE clause.
format_encode_secret_refs: BTreeMap<String, SecretRef>
Handle the source relies on any sceret. The key is the propertity name and the value is the secret id and type. For format and encode options.
Implementations§
source§impl StreamSourceInfo
impl StreamSourceInfo
sourcepub fn row_format(&self) -> RowFormatType
pub fn row_format(&self) -> RowFormatType
Returns the enum value of row_format
, or the default if the field is set to an invalid enum value.
sourcepub fn set_row_format(&mut self, value: RowFormatType)
pub fn set_row_format(&mut self, value: RowFormatType)
Sets row_format
to the provided enum value.
sourcepub fn format(&self) -> FormatType
pub fn format(&self) -> FormatType
Returns the enum value of format
, or the default if the field is set to an invalid enum value.
sourcepub fn set_format(&mut self, value: FormatType)
pub fn set_format(&mut self, value: FormatType)
Sets format
to the provided enum value.
sourcepub fn row_encode(&self) -> EncodeType
pub fn row_encode(&self) -> EncodeType
Returns the enum value of row_encode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_row_encode(&mut self, value: EncodeType)
pub fn set_row_encode(&mut self, value: EncodeType)
Sets row_encode
to the provided enum value.
sourcepub fn name_strategy(&self) -> SchemaRegistryNameStrategy
pub fn name_strategy(&self) -> SchemaRegistryNameStrategy
Returns the enum value of name_strategy
, or the default if the field is set to an invalid enum value.
sourcepub fn set_name_strategy(&mut self, value: SchemaRegistryNameStrategy)
pub fn set_name_strategy(&mut self, value: SchemaRegistryNameStrategy)
Sets name_strategy
to the provided enum value.
sourcepub fn key_message_name(&self) -> &str
pub fn key_message_name(&self) -> &str
Returns the value of key_message_name
, or the default value if key_message_name
is unset.
source§impl StreamSourceInfo
impl StreamSourceInfo
pub fn get_row_format(&self) -> Result<RowFormatType, PbFieldNotFound>
pub fn get_row_schema_location(&self) -> &String
pub fn get_use_schema_registry(&self) -> bool
pub fn get_proto_message_name(&self) -> &String
pub fn get_csv_delimiter(&self) -> i32
pub fn get_csv_has_header(&self) -> bool
pub fn get_format(&self) -> Result<FormatType, PbFieldNotFound>
pub fn get_row_encode(&self) -> Result<EncodeType, PbFieldNotFound>
pub fn get_name_strategy( &self, ) -> Result<SchemaRegistryNameStrategy, PbFieldNotFound>
pub fn get_key_message_name(&self) -> Result<&String, PbFieldNotFound>
pub fn get_external_table(&self) -> Result<&ExternalTableDesc, PbFieldNotFound>
pub fn get_cdc_source_job(&self) -> bool
pub fn get_is_distributed(&self) -> bool
pub fn get_format_encode_options(&self) -> &BTreeMap<String, String>
pub fn get_format_encode_secret_refs(&self) -> &BTreeMap<String, SecretRef>
source§impl StreamSourceInfo
impl StreamSourceInfo
Refer to Self::cdc_source_job
for details.
Trait Implementations§
source§impl Clone for StreamSourceInfo
impl Clone for StreamSourceInfo
source§fn clone(&self) -> StreamSourceInfo
fn clone(&self) -> StreamSourceInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StreamSourceInfo
impl Debug for StreamSourceInfo
source§impl Default for StreamSourceInfo
impl Default for StreamSourceInfo
source§impl<'de> Deserialize<'de> for StreamSourceInfo
impl<'de> Deserialize<'de> for StreamSourceInfo
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 Hash for StreamSourceInfo
impl Hash for StreamSourceInfo
source§impl Message for StreamSourceInfo
impl Message for StreamSourceInfo
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 StreamSourceInfo
impl PartialEq for StreamSourceInfo
source§impl Serialize for StreamSourceInfo
impl Serialize for StreamSourceInfo
impl Eq for StreamSourceInfo
impl StructuralPartialEq for StreamSourceInfo
Auto Trait Implementations§
impl Freeze for StreamSourceInfo
impl RefUnwindSafe for StreamSourceInfo
impl Send for StreamSourceInfo
impl Sync for StreamSourceInfo
impl Unpin for StreamSourceInfo
impl UnwindSafe for StreamSourceInfo
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§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> 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