#[non_exhaustive]
pub struct KafkaStreamingSourceOptions { /* private fields */ }
Expand description

Additional options for streaming.

Implementations

A list of bootstrap server URLs, for example, as b-1.vpc-test-2.o4q88o.c6.kafka.us-east-1.amazonaws.com:9094. This option must be specified in the API call or defined in the table metadata in the Data Catalog.

The protocol used to communicate with brokers. The possible values are "SSL" or "PLAINTEXT".

The name of the connection.

The topic name as specified in Apache Kafka. You must specify at least one of "topicName", "assign" or "subscribePattern".

The specific TopicPartitions to consume. You must specify at least one of "topicName", "assign" or "subscribePattern".

A Java regex string that identifies the topic list to subscribe to. You must specify at least one of "topicName", "assign" or "subscribePattern".

An optional classification.

Specifies the delimiter character.

The starting position in the Kafka topic to read data from. The possible values are "earliest" or "latest". The default value is "latest".

The end point when a batch query is ended. Possible values are either "latest" or a JSON string that specifies an ending offset for each TopicPartition.

The timeout in milliseconds to poll data from Kafka in Spark job executors. The default value is 512.

The number of times to retry before failing to fetch Kafka offsets. The default value is 3.

The time in milliseconds to wait before retrying to fetch Kafka offsets. The default value is 10.

The rate limit on the maximum number of offsets that are processed per trigger interval. The specified total number of offsets is proportionally split across topicPartitions of different volumes. The default value is null, which means that the consumer reads all offsets until the known latest offset.

The desired minimum number of partitions to read from Kafka. The default value is null, which means that the number of spark partitions is equal to the number of Kafka partitions.

Creates a new builder-style object to manufacture KafkaStreamingSourceOptions.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more