public abstract class KafkaJsonTableSink extends KafkaTableSink
KafkaTableSink
that serializes data in JSON format.fieldNames, fieldTypes, partitioner, properties, serializationSchema, topic
Constructor and Description |
---|
KafkaJsonTableSink(String topic,
Properties properties,
FlinkKafkaPartitioner<Row> partitioner)
Creates KafkaJsonTableSink.
|
Modifier and Type | Method and Description |
---|---|
protected SerializationSchema<Row> |
createSerializationSchema(RowTypeInfo rowSchema)
Create serialization schema for converting table rows into bytes.
|
configure, createCopy, createKafkaProducer, emitDataStream, getFieldNames, getFieldTypes, getOutputType
public KafkaJsonTableSink(String topic, Properties properties, FlinkKafkaPartitioner<Row> partitioner)
topic
- topic in Kafka to which table is writtenproperties
- properties to connect to Kafkapartitioner
- Kafka partitionerprotected SerializationSchema<Row> createSerializationSchema(RowTypeInfo rowSchema)
KafkaTableSink
createSerializationSchema
in class KafkaTableSink
rowSchema
- the schema of the row to serialize.Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.