public class Kafka010JsonTableSource extends Kafka09JsonTableSource
StreamTableSource for Kafka 0.10.| Constructor and Description |
|---|
Kafka010JsonTableSource(String topic,
Properties properties,
String[] fieldNames,
Class<?>[] fieldTypes)
Creates a Kafka 0.10 JSON
StreamTableSource. |
Kafka010JsonTableSource(String topic,
Properties properties,
String[] fieldNames,
org.apache.flink.api.common.typeinfo.TypeInformation<?>[] fieldTypes)
Creates a Kafka 0.10 JSON
StreamTableSource. |
setFailOnMissingFieldgetDataStream, getDeserializationSchema, getReturnTypepublic Kafka010JsonTableSource(String topic, Properties properties, String[] fieldNames, org.apache.flink.api.common.typeinfo.TypeInformation<?>[] fieldTypes)
StreamTableSource.topic - Kafka topic to consume.properties - Properties for the Kafka consumer.fieldNames - Row field names.fieldTypes - Row field types.public Kafka010JsonTableSource(String topic, Properties properties, String[] fieldNames, Class<?>[] fieldTypes)
StreamTableSource.topic - Kafka topic to consume.properties - Properties for the Kafka consumer.fieldNames - Row field names.fieldTypes - Row field types.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.