Package | Description |
---|---|
org.apache.flink.connector.kafka.sink |
Modifier and Type | Method and Description |
---|---|
static <T> KafkaRecordSerializationSchemaBuilder<T> |
KafkaRecordSerializationSchema.builder()
Creates a default schema builder to provide common building blocks i.e.
|
<T extends IN> |
KafkaRecordSerializationSchemaBuilder.setKafkaKeySerializer(Class<? extends org.apache.kafka.common.serialization.Serializer<? super T>> keySerializer)
Sets Kafka's
Serializer to serialize incoming elements to the key of the ProducerRecord . |
<T extends IN,S extends org.apache.kafka.common.serialization.Serializer<? super T>> |
KafkaRecordSerializationSchemaBuilder.setKafkaKeySerializer(Class<S> keySerializer,
Map<String,String> configuration)
Sets a configurable Kafka
Serializer and pass a configuration to serialize incoming
elements to the key of the ProducerRecord . |
<T extends IN> |
KafkaRecordSerializationSchemaBuilder.setKafkaValueSerializer(Class<? extends org.apache.kafka.common.serialization.Serializer<? super T>> valueSerializer)
Sets Kafka's
Serializer to serialize incoming elements to the value of the ProducerRecord . |
<T extends IN,S extends org.apache.kafka.common.serialization.Serializer<? super T>> |
KafkaRecordSerializationSchemaBuilder.setKafkaValueSerializer(Class<S> valueSerializer,
Map<String,String> configuration)
Sets a configurable Kafka
Serializer and pass a configuration to serialize incoming
elements to the value of the ProducerRecord . |
<T extends IN> |
KafkaRecordSerializationSchemaBuilder.setKeySerializationSchema(SerializationSchema<? super T> keySerializationSchema)
Sets a
SerializationSchema which is used to serialize the incoming element to the key
of the ProducerRecord . |
<T extends IN> |
KafkaRecordSerializationSchemaBuilder.setPartitioner(FlinkKafkaPartitioner<? super T> partitioner)
Sets a custom partitioner determining the target partition of the target topic.
|
KafkaRecordSerializationSchemaBuilder<IN> |
KafkaRecordSerializationSchemaBuilder.setTopic(String topic)
Sets a fixed topic which used as destination for all records.
|
<T extends IN> |
KafkaRecordSerializationSchemaBuilder.setTopicSelector(TopicSelector<? super T> topicSelector)
Sets a topic selector which computes the target topic for every incoming record.
|
<T extends IN> |
KafkaRecordSerializationSchemaBuilder.setValueSerializationSchema(SerializationSchema<T> valueSerializationSchema)
Sets a
SerializationSchema which is used to serialize the incoming element to the
value of the ProducerRecord . |
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.