T
- Type of the KafkaJsonTableSource produced by the builder.B
- Type of the KafkaJsonTableSource.Builder subclass.Kafka
descriptor together
with descriptors for schema and format instead. Descriptors allow for
implementation-agnostic definition of tables. See also
TableEnvironment.connect(ConnectorDescriptor)
.@Deprecated protected abstract static class KafkaJsonTableSource.Builder<T extends KafkaJsonTableSource,B extends KafkaJsonTableSource.Builder> extends KafkaTableSource.Builder<T,B>
KafkaJsonTableSource
to be extended by builders of subclasses of
KafkaJsonTableSource.Modifier | Constructor and Description |
---|---|
protected |
Builder()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configureTableSource(T source)
Deprecated.
Use table descriptors instead of implementation-specific builders.
|
B |
failOnMissingField(boolean failOnMissingField)
Deprecated.
Use table descriptors instead of implementation-specific builders.
|
B |
forJsonSchema(org.apache.flink.table.api.TableSchema jsonSchema)
Deprecated.
Use table descriptors instead of implementation-specific builders.
|
protected org.apache.flink.table.api.TableSchema |
getJsonSchema()
Deprecated.
Use table descriptors instead of implementation-specific builders.
|
B |
withTableToJsonMapping(Map<String,String> tableToJsonMapping)
Deprecated.
Use table descriptors instead of implementation-specific builders.
|
build, builder, forTopic, fromEarliest, fromGroupOffsets, fromLatest, fromSpecificOffsets, getKafkaProps, getTableSchema, getTopic, supportsKafkaTimestamps, withKafkaProperties, withKafkaTimestampAsRowtimeAttribute, withProctimeAttribute, withRowtimeAttribute, withSchema
@Deprecated public B forJsonSchema(org.apache.flink.table.api.TableSchema jsonSchema)
jsonSchema
- The schema of the JSON-encoded Kafka messages.@Deprecated public B withTableToJsonMapping(Map<String,String> tableToJsonMapping)
A field mapping is required if the fields of produced tables should be named different than the fields of the JSON records. The key of the provided Map refers to the field of the table schema, the value to the field in the JSON schema.
tableToJsonMapping
- A mapping from table schema fields to JSON schema fields.@Deprecated public B failOnMissingField(boolean failOnMissingField)
failOnMissingField
- If set to true, the TableSource fails if there is a missing
field.
If set to false, a missing field is set to null.@Deprecated protected org.apache.flink.table.api.TableSchema getJsonSchema()
@Deprecated protected void configureTableSource(T source)
configureTableSource
in class KafkaTableSource.Builder<T extends KafkaJsonTableSource,B extends KafkaJsonTableSource.Builder>
source
- The TableSource to configure.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.