pub struct ConnectorConfig {
pub transport: TransportConfig,
pub format: Option<FormatConfig>,
pub index: Option<String>,
pub output_buffer_config: OutputBufferConfig,
pub max_batch_size: u64,
pub max_queued_records: u64,
pub paused: bool,
pub labels: Vec<String>,
pub start_after: Option<Vec<String>>,
}Expand description
A data connector’s configuration
Fields§
§transport: TransportConfigTransport endpoint configuration.
format: Option<FormatConfig>Parser configuration.
index: Option<String>Name of the index that the connector is attached to.
This property is valid for output connectors only. It is used with data transports and formats that expect output updates in the form of key/value pairs, where the key typically represents a unique id associated with the table or view.
To support such output formats, an output connector can be attached to an index created using the SQL CREATE INDEX statement. An index of a table or view contains the same updates as the table or view itself, indexed by one or more key columns.
See individual connector documentation for details on how they work with indexes.
output_buffer_config: OutputBufferConfigOutput buffer configuration.
max_batch_size: u64Maximum batch size, in records.
This is the maximum number of records to process in one batch through the circuit. The time and space cost of processing a batch is asymptotically superlinear in the size of the batch, but very small batches are less efficient due to constant factors.
This should usually be less than max_queued_records, to give the
connector a round-trip time to restart and refill the buffer while
batches are being processed.
Some input adapters might not honor this setting.
The default is 10,000.
max_queued_records: u64Backpressure threshold.
Maximal number of records queued by the endpoint before the endpoint is paused by the backpressure mechanism.
For input endpoints, this setting bounds the number of records that have been received from the input transport but haven’t yet been consumed by the circuit since the circuit, since the circuit is still busy processing previous inputs.
For output endpoints, this setting bounds the number of records that have
been produced by the circuit but not yet sent via the output transport endpoint
nor stored in the output buffer (see enable_output_buffer).
Note that this is not a hard bound: there can be a small delay between the backpressure mechanism is triggered and the endpoint is paused, during which more data may be queued.
The default is 1 million.
paused: boolCreate connector in paused state.
The default is false.
labels: Vec<String>Arbitrary user-defined text labels associated with the connector.
These labels can be used in conjunction with the start_after property
to control the start order of connectors.
start_after: Option<Vec<String>>Start the connector after all connectors with specified labels.
This property is used to control the start order of connectors. The connector will not start until all connectors with the specified labels have finished processing all inputs.
Trait Implementations§
Source§impl Clone for ConnectorConfig
impl Clone for ConnectorConfig
Source§fn clone(&self) -> ConnectorConfig
fn clone(&self) -> ConnectorConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConnectorConfig
impl Debug for ConnectorConfig
Source§impl<'de> Deserialize<'de> for ConnectorConfig
impl<'de> Deserialize<'de> for ConnectorConfig
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 PartialEq for ConnectorConfig
impl PartialEq for ConnectorConfig
Source§impl Serialize for ConnectorConfig
impl Serialize for ConnectorConfig
Source§impl<'__s> ToSchema<'__s> for ConnectorConfig
impl<'__s> ToSchema<'__s> for ConnectorConfig
impl Eq for ConnectorConfig
impl StructuralPartialEq for ConnectorConfig
Auto Trait Implementations§
impl Freeze for ConnectorConfig
impl RefUnwindSafe for ConnectorConfig
impl Send for ConnectorConfig
impl Sync for ConnectorConfig
impl Unpin for ConnectorConfig
impl UnwindSafe for ConnectorConfig
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.