public class Kafka08JsonTableSource extends KafkaJsonTableSource
StreamTableSource
for Kafka 0.8.Constructor and Description |
---|
Kafka08JsonTableSource(String topic,
Properties properties,
TypeInformation<Row> typeInfo)
Creates a Kafka 0.8 JSON
StreamTableSource . |
setFailOnMissingField
explainSource, getDataStream, getDeserializationSchema, getReturnType
public Kafka08JsonTableSource(String topic, Properties properties, TypeInformation<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–2018 The Apache Software Foundation. All rights reserved.