Kafka descriptor together
with descriptors for schema and format instead. Descriptors allow for
implementation-agnostic definition of tables. See also
TableEnvironment.connect(ConnectorDescriptor).@Deprecated public class Kafka09AvroTableSource extends org.apache.flink.streaming.connectors.kafka.KafkaAvroTableSource
StreamTableSource for Kafka 0.9.| Modifier and Type | Class and Description |
|---|---|
static class |
Kafka09AvroTableSource.Builder
Deprecated.
Use the
Kafka descriptor together
with descriptors for schema and format instead. Descriptors allow for
implementation-agnostic definition of tables. See also
TableEnvironment.connect(ConnectorDescriptor). |
| Constructor and Description |
|---|
Kafka09AvroTableSource(String topic,
Properties properties,
org.apache.flink.table.api.TableSchema schema,
Class<? extends org.apache.avro.specific.SpecificRecordBase> record)
Deprecated.
Creates a Kafka 0.9 Avro
StreamTableSource using a given SpecificRecord. |
| Modifier and Type | Method and Description |
|---|---|
static Kafka09AvroTableSource.Builder |
builder()
Deprecated.
Use the
Kafka descriptor together
with descriptors for schema and format instead. Descriptors allow for
implementation-agnostic definition of tables. See also
TableEnvironment.connect(ConnectorDescriptor). |
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)
Deprecated.
|
void |
setFieldMapping(Map<String,String> fieldMapping)
Deprecated.
Use table descriptors instead of implementation-specific builders.
|
void |
setProctimeAttribute(String proctimeAttribute)
Deprecated.
Use table descriptors instead of implementation-specific builders.
|
void |
setRowtimeAttributeDescriptor(org.apache.flink.table.sources.RowtimeAttributeDescriptor rowtimeAttributeDescriptor)
Deprecated.
Use table descriptors instead of implementation-specific builders.
|
explainSourceequals, getDataStream, getDeserializationSchema, getFieldMapping, getKafkaConsumer, getProctimeAttribute, getProperties, getReturnType, getRowtimeAttributeDescriptors, getTableSchema, hashCode, setRowtimeAttributeDescriptors, setSpecificStartupOffsets, setStartupModepublic Kafka09AvroTableSource(String topic, Properties properties, org.apache.flink.table.api.TableSchema schema, Class<? extends org.apache.avro.specific.SpecificRecordBase> record)
StreamTableSource using a given SpecificRecord.topic - Kafka topic to consume.properties - Properties for the Kafka consumer.schema - Schema of the produced table.record - Avro specific record.@Deprecated public void setFieldMapping(Map<String,String> fieldMapping)
A field mapping is required if the fields of produced tables should be named different than the fields of the Avro record. The key of the provided Map refers to the field of the table schema, the value to the field of the Avro record.
setFieldMapping in class org.apache.flink.streaming.connectors.kafka.KafkaTableSourcefieldMapping - A mapping from schema fields to Avro fields.@Deprecated public void setProctimeAttribute(String proctimeAttribute)
setProctimeAttribute in class org.apache.flink.streaming.connectors.kafka.KafkaTableSourceproctimeAttribute - The name of the field that becomes the processing time field.@Deprecated public void setRowtimeAttributeDescriptor(org.apache.flink.table.sources.RowtimeAttributeDescriptor rowtimeAttributeDescriptor)
rowtimeAttributeDescriptor - The descriptor of the rowtime attribute.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 in class org.apache.flink.streaming.connectors.kafka.KafkaTableSource@Deprecated public static Kafka09AvroTableSource.Builder builder()
Kafka descriptor together
with descriptors for schema and format instead. Descriptors allow for
implementation-agnostic definition of tables. See also
TableEnvironment.connect(ConnectorDescriptor).Kafka09AvroTableSource.Kafka09AvroTableSource.Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.