pub struct StreamSourceInfo {Show 16 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>,
pub connection_id: Option<u32>,
}
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.
connection_id: Option<u32>
ref connection for schema registry
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.
Sourcepub fn connection_id(&self) -> u32
pub fn connection_id(&self) -> u32
Returns the value of connection_id
, or the default value if connection_id
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>
pub fn get_connection_id(&self) -> Result<&u32, PbFieldNotFound>
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,
§impl<T> Conv for T
impl<T> Conv for T
§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<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<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§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
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.