public class Kafka010JsonTableSource extends 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. |
setFailOnMissingFieldexplainSource, getDataStream, getDeserializationSchema, getReturnTypepublic 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.