pub struct SinkConfig {
pub tenant: String,
pub namespace: String,
pub name: String,
pub class_name: String,
pub inputs: Vec<String>,
pub parallelism: i32,
pub configs: Option<Value>,
}Expand description
Java SinkConfig — declarative description of a Pulsar IO Sink.
Mirrors org.apache.pulsar.common.io.SinkConfig (Jackson camelCase
on the wire). The inputs slot is the list of source topics the
sink reads from — the broker accepts either fully-qualified topic
names or tenant/namespace/topic shorthand. Per-connector knobs
ride in configs for the same forward-compat reason as
SourceConfig.
Fields§
§tenant: StringTenant owning the sink. Must match the URL path tenant.
namespace: StringNamespace owning the sink. Must match the URL path namespace.
name: StringSink name. Must match the URL path name.
class_name: StringFully-qualified connector class (e.g.
org.apache.pulsar.io.jdbc.PostgresJdbcAutoSchemaSink).
inputs: Vec<String>Source topics the sink subscribes to.
parallelism: i32Number of sink instances to schedule.
configs: Option<Value>Connector-specific configuration map. Skipped from JSON when
None so a null does not override the broker default.
Trait Implementations§
Source§impl Clone for SinkConfig
impl Clone for SinkConfig
Source§fn clone(&self) -> SinkConfig
fn clone(&self) -> SinkConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more