public class Kafka010TableSource
extends org.apache.flink.streaming.connectors.kafka.Kafka09TableSource
StreamTableSource for Kafka 0.10.| Constructor and Description |
|---|
Kafka010TableSource(String topic,
Properties properties,
org.apache.flink.streaming.util.serialization.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. |
public Kafka010TableSource(String topic, Properties properties, org.apache.flink.streaming.util.serialization.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.