Uses of Class
org.apache.flink.connector.kafka.source.KafkaSourceBuilder
Packages that use KafkaSourceBuilder
-
Uses of KafkaSourceBuilder in org.apache.flink.connector.kafka.source
Methods in org.apache.flink.connector.kafka.source that return KafkaSourceBuilderModifier and TypeMethodDescriptionstatic <OUT> KafkaSourceBuilder<OUT> KafkaSource.builder()Get a kafkaSourceBuilder to build aKafkaSource.KafkaSourceBuilder.setBootstrapServers(String bootstrapServers) Sets the bootstrap servers for the KafkaConsumer of the KafkaSource.KafkaSourceBuilder.setBounded(OffsetsInitializer stoppingOffsetsInitializer) By default the KafkaSource is set to run asBoundedness.CONTINUOUS_UNBOUNDEDand thus never stops until the Flink job fails or is canceled.KafkaSourceBuilder.setClientIdPrefix(String prefix) Sets the client id prefix of this KafkaSource.KafkaSourceBuilder.setDeserializer(KafkaRecordDeserializationSchema<OUT> recordDeserializer) Sets thedeserializerof theConsumerRecordfor KafkaSource.KafkaSourceBuilder.setGroupId(String groupId) Sets the consumer group id of the KafkaSource.KafkaSourceBuilder.setKafkaSubscriber(KafkaSubscriber kafkaSubscriber) Set a custom Kafka subscriber to use to discover new splits.KafkaSourceBuilder.setPartitions(Set<org.apache.kafka.common.TopicPartition> partitions) Set a set of partitions to consume from.KafkaSourceBuilder.setProperties(Properties props) Set arbitrary properties for the KafkaSource and KafkaConsumer.KafkaSourceBuilder.setProperty(String key, String value) Set an arbitrary property for the KafkaSource and KafkaConsumer.KafkaSourceBuilder.setRackIdSupplier(org.apache.flink.util.function.SerializableSupplier<String> rackIdCallback) Set the clientRackId supplier to be passed down to the KafkaPartitionSplitReader.KafkaSourceBuilder.setStartingOffsets(OffsetsInitializer startingOffsetsInitializer) Specify from which offsets the KafkaSource should start consuming from by providing anOffsetsInitializer.KafkaSourceBuilder.setTopicPattern(Pattern topicPattern) Set a topic pattern to consume from use the javaPattern.Set a list of topics the KafkaSource should consume from.Set a list of topics the KafkaSource should consume from.KafkaSourceBuilder.setUnbounded(OffsetsInitializer stoppingOffsetsInitializer) By default the KafkaSource is set to run asBoundedness.CONTINUOUS_UNBOUNDEDand thus never stops until the Flink job fails or is canceled.KafkaSourceBuilder.setValueOnlyDeserializer(org.apache.flink.api.common.serialization.DeserializationSchema<OUT> deserializationSchema) Sets thedeserializerof theConsumerRecordfor KafkaSource.