@Internal public class Kafka09TableSink extends KafkaTableSink
fieldNames, fieldTypes, partitioner, properties, serializationSchema, topic
Constructor and Description |
---|
Kafka09TableSink(org.apache.flink.table.api.TableSchema schema,
String topic,
Properties properties,
Optional<FlinkKafkaPartitioner<Row>> partitioner,
SerializationSchema<Row> serializationSchema) |
Modifier and Type | Method and Description |
---|---|
protected FlinkKafkaProducerBase<Row> |
createKafkaProducer(String topic,
Properties properties,
SerializationSchema<Row> serializationSchema,
Optional<FlinkKafkaPartitioner<Row>> partitioner)
Returns the version-specific Kafka producer.
|
configure, createCopy, createSerializationSchema, emitDataStream, equals, getFieldNames, getFieldTypes, getOutputType, hashCode
public Kafka09TableSink(org.apache.flink.table.api.TableSchema schema, String topic, Properties properties, Optional<FlinkKafkaPartitioner<Row>> partitioner, SerializationSchema<Row> serializationSchema)
protected FlinkKafkaProducerBase<Row> createKafkaProducer(String topic, Properties properties, SerializationSchema<Row> serializationSchema, Optional<FlinkKafkaPartitioner<Row>> partitioner)
KafkaTableSink
createKafkaProducer
in class KafkaTableSink
topic
- Kafka topic to produce to.properties
- Properties for the Kafka producer.serializationSchema
- Serialization schema to use to create Kafka records.partitioner
- Partitioner to select Kafka partition.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.