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