@Generated(value="software.amazon.awssdk:codegen") public final class KafkaStreamingSourceOptions extends Object implements SdkPojo, Serializable, ToCopyableBuilder<KafkaStreamingSourceOptions.Builder,KafkaStreamingSourceOptions>
Additional options for streaming.
| Modifier and Type | Class and Description |
|---|---|
static interface |
KafkaStreamingSourceOptions.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
assign()
The specific
TopicPartitions to consume. |
String |
bootstrapServers()
A list of bootstrap server URLs, for example, as
b-1.vpc-test-2.o4q88o.c6.kafka.us-east-1.amazonaws.com:9094. |
static KafkaStreamingSourceOptions.Builder |
builder() |
String |
classification()
An optional classification.
|
String |
connectionName()
The name of the connection.
|
String |
delimiter()
Specifies the delimiter character.
|
String |
endingOffsets()
The end point when a batch query is ended.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Long |
maxOffsetsPerTrigger()
The rate limit on the maximum number of offsets that are processed per trigger interval.
|
Integer |
minPartitions()
The desired minimum number of partitions to read from Kafka.
|
Integer |
numRetries()
The number of times to retry before failing to fetch Kafka offsets.
|
Long |
pollTimeoutMs()
The timeout in milliseconds to poll data from Kafka in Spark job executors.
|
Long |
retryIntervalMs()
The time in milliseconds to wait before retrying to fetch Kafka offsets.
|
List<SdkField<?>> |
sdkFields() |
String |
securityProtocol()
The protocol used to communicate with brokers.
|
static Class<? extends KafkaStreamingSourceOptions.Builder> |
serializableBuilderClass() |
String |
startingOffsets()
The starting position in the Kafka topic to read data from.
|
String |
subscribePattern()
A Java regex string that identifies the topic list to subscribe to.
|
KafkaStreamingSourceOptions.Builder |
toBuilder() |
String |
topicName()
The topic name as specified in Apache Kafka.
|
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String bootstrapServers()
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.
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.public final String securityProtocol()
The protocol used to communicate with brokers. The possible values are "SSL" or
"PLAINTEXT".
"SSL" or
"PLAINTEXT".public final String connectionName()
The name of the connection.
public final String topicName()
The topic name as specified in Apache Kafka. You must specify at least one of "topicName",
"assign" or "subscribePattern".
"topicName",
"assign" or "subscribePattern".public final String assign()
The specific TopicPartitions to consume. You must specify at least one of "topicName",
"assign" or "subscribePattern".
TopicPartitions to consume. You must specify at least one of
"topicName", "assign" or "subscribePattern".public final String subscribePattern()
A Java regex string that identifies the topic list to subscribe to. You must specify at least one of
"topicName", "assign" or "subscribePattern".
"topicName", "assign" or "subscribePattern".public final String classification()
An optional classification.
public final String delimiter()
Specifies the delimiter character.
public final String startingOffsets()
The starting position in the Kafka topic to read data from. The possible values are "earliest" or
"latest". The default value is "latest".
"earliest" or "latest". The default value is "latest".public final String endingOffsets()
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.
"latest" or a JSON
string that specifies an ending offset for each TopicPartition.public final Long pollTimeoutMs()
The timeout in milliseconds to poll data from Kafka in Spark job executors. The default value is 512
.
512.public final Integer numRetries()
The number of times to retry before failing to fetch Kafka offsets. The default value is 3.
3.public final Long retryIntervalMs()
The time in milliseconds to wait before retrying to fetch Kafka offsets. The default value is 10.
10.public final Long maxOffsetsPerTrigger()
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.
topicPartitions of different volumes.
The default value is null, which means that the consumer reads all offsets until the known latest offset.public final Integer minPartitions()
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.
public KafkaStreamingSourceOptions.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<KafkaStreamingSourceOptions.Builder,KafkaStreamingSourceOptions>public static KafkaStreamingSourceOptions.Builder builder()
public static Class<? extends KafkaStreamingSourceOptions.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.