@Internal
public class Kafka010TableSource
extends org.apache.flink.streaming.connectors.kafka.KafkaTableSourceBase
StreamTableSource for Kafka 0.10.| 构造器和说明 |
|---|
Kafka010TableSource(org.apache.flink.table.api.TableSchema schema,
Optional<String> proctimeAttribute,
List<org.apache.flink.table.sources.RowtimeAttributeDescriptor> rowtimeAttributeDescriptors,
Optional<Map<String,String>> fieldMapping,
String topic,
Properties properties,
org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.types.Row> deserializationSchema,
org.apache.flink.streaming.connectors.kafka.config.StartupMode startupMode,
Map<org.apache.flink.streaming.connectors.kafka.internals.KafkaTopicPartition,Long> specificStartupOffsets,
long startupTimestampMillis)
Creates a Kafka 0.10
StreamTableSource. |
Kafka010TableSource(org.apache.flink.table.api.TableSchema schema,
String topic,
Properties properties,
org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.types.Row> deserializationSchema)
Creates a Kafka 0.10
StreamTableSource. |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumerBase<org.apache.flink.types.Row> |
createKafkaConsumer(String topic,
Properties properties,
org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.types.Row> deserializationSchema) |
public Kafka010TableSource(org.apache.flink.table.api.TableSchema schema,
Optional<String> proctimeAttribute,
List<org.apache.flink.table.sources.RowtimeAttributeDescriptor> rowtimeAttributeDescriptors,
Optional<Map<String,String>> fieldMapping,
String topic,
Properties properties,
org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.types.Row> deserializationSchema,
org.apache.flink.streaming.connectors.kafka.config.StartupMode startupMode,
Map<org.apache.flink.streaming.connectors.kafka.internals.KafkaTopicPartition,Long> specificStartupOffsets,
long startupTimestampMillis)
StreamTableSource.schema - Schema of the produced table.proctimeAttribute - Field name of the processing time attribute.rowtimeAttributeDescriptors - Descriptor for a rowtime attributefieldMapping - Mapping for the fields of the table schema to fields of the physical
returned type.topic - Kafka topic to consume.properties - Properties for the Kafka consumer.deserializationSchema - Deserialization schema for decoding records from Kafka.startupMode - Startup mode for the contained consumer.specificStartupOffsets - Specific startup offsets; only relevant when startup mode is
StartupMode.SPECIFIC_OFFSETS.startupTimestampMillis - Startup timestamp for offsets; only relevant when startup mode
is StartupMode.TIMESTAMP.public Kafka010TableSource(org.apache.flink.table.api.TableSchema schema,
String topic,
Properties properties,
org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.types.Row> deserializationSchema)
StreamTableSource.schema - Schema of the produced table.topic - Kafka topic to consume.properties - Properties for the Kafka consumer.deserializationSchema - Deserialization schema for decoding records from Kafka.protected org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumerBase<org.apache.flink.types.Row> createKafkaConsumer(String topic, Properties properties, org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.types.Row> deserializationSchema)
createKafkaConsumer 在类中 org.apache.flink.streaming.connectors.kafka.KafkaTableSourceBaseCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.