public class Kafka010JsonTableSource
extends org.apache.flink.streaming.connectors.kafka.KafkaJsonTableSource
StreamTableSource for Kafka 0.10.| Constructor and Description |
|---|
Kafka010JsonTableSource(String topic,
Properties properties,
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo)
Creates a Kafka 0.10 JSON
StreamTableSource. |
public Kafka010JsonTableSource(String topic, Properties properties, org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo)
StreamTableSource.topic - Kafka topic to consume.properties - Properties for the Kafka consumer.typeInfo - Type information describing the result type. The field names are used
to parse the JSON file and so are the types.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.