public class Kafka08TableSource extends KafkaTableSource
StreamTableSource
for Kafka 0.8.Constructor and Description |
---|
Kafka08TableSource(String topic,
Properties properties,
DeserializationSchema<Row> deserializationSchema,
String[] fieldNames,
Class<?>[] fieldTypes)
Creates a Kafka 0.8
StreamTableSource . |
Kafka08TableSource(String topic,
Properties properties,
DeserializationSchema<Row> deserializationSchema,
String[] fieldNames,
TypeInformation<?>[] fieldTypes)
Creates a Kafka 0.8
StreamTableSource . |
getDataStream, getDeserializationSchema, getReturnType
public Kafka08TableSource(String topic, Properties properties, DeserializationSchema<Row> deserializationSchema, String[] fieldNames, TypeInformation<?>[] fieldTypes)
StreamTableSource
.topic
- Kafka topic to consume.properties
- Properties for the Kafka consumer.deserializationSchema
- Deserialization schema to use for Kafka records.fieldNames
- Row field names.fieldTypes
- Row field types.public Kafka08TableSource(String topic, Properties properties, DeserializationSchema<Row> deserializationSchema, String[] fieldNames, Class<?>[] fieldTypes)
StreamTableSource
.topic
- Kafka topic to consume.properties
- Properties for the Kafka consumer.deserializationSchema
- Deserialization schema to use for Kafka records.fieldNames
- Row field names.fieldTypes
- Row field types.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.