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 Kafka09JsonTableSource extends org.apache.flink.streaming.connectors.kafka.KafkaJsonTableSource
StreamTableSource for Kafka 0.9.| Modifier and Type | Class and Description |
|---|---|
static class |
Kafka09JsonTableSource.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 |
|---|
Kafka09JsonTableSource(String topic,
Properties properties,
org.apache.flink.table.api.TableSchema tableSchema,
org.apache.flink.table.api.TableSchema jsonSchema)
Deprecated.
Use table descriptors instead of implementation-specific builders.
|
| Modifier and Type | Method and Description |
|---|---|
static Kafka09JsonTableSource.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 |
setFailOnMissingField(boolean failOnMissingField)
Deprecated.
Use table descriptors instead of implementation-specific builders.
|
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, setStartupMode@Deprecated public Kafka09JsonTableSource(String topic, Properties properties, org.apache.flink.table.api.TableSchema tableSchema, org.apache.flink.table.api.TableSchema jsonSchema)
StreamTableSource.topic - Kafka topic to consume.properties - Properties for the Kafka consumer.tableSchema - The schema of the table.jsonSchema - The schema of the JSON messages to decode from Kafka.@Deprecated public void setFailOnMissingField(boolean failOnMissingField)
setFailOnMissingField in class org.apache.flink.streaming.connectors.kafka.KafkaJsonTableSourcefailOnMissingField - Flag that specifies the TableSource behavior in case of missing fields.@Deprecated public void setFieldMapping(Map<String,String> fieldMapping)
setFieldMapping in class org.apache.flink.streaming.connectors.kafka.KafkaTableSourcefieldMapping - The mapping from table schema fields to JSON schema 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 Kafka09JsonTableSource.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).Kafka09JsonTableSource.Kafka09JsonTableSource.Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.