public class Kafka010TableSource extends Kafka09TableSource
StreamTableSource for Kafka 0.10.| Constructor and Description |
|---|
Kafka010TableSource(String topic,
Properties properties,
DeserializationSchema<org.apache.flink.types.Row> deserializationSchema,
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo)
Creates a Kafka 0.10
StreamTableSource. |
explainSource, getDataStream, getDeserializationSchema, getReturnTypepublic Kafka010TableSource(String topic, Properties properties, DeserializationSchema<org.apache.flink.types.Row> deserializationSchema, 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.deserializationSchema - Deserialization schema to use for Kafka records.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.