Schema for details.@PublicEvolving @Deprecated public class SchemaValidator extends Object implements org.apache.flink.table.descriptors.DescriptorValidator
Schema.| 构造器和说明 |
|---|
SchemaValidator(boolean isStreamEnvironment,
boolean supportsSourceTimestamps,
boolean supportsSourceWatermarks)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Map<String,String> |
deriveFieldMapping(org.apache.flink.table.descriptors.DescriptorProperties properties,
Optional<org.apache.flink.api.common.typeinfo.TypeInformation<?>> inputType)
已过时。
Finds a table source field mapping.
|
static Optional<String> |
deriveProctimeAttribute(org.apache.flink.table.descriptors.DescriptorProperties properties)
已过时。
Finds the proctime attribute if defined.
|
static List<org.apache.flink.table.sources.RowtimeAttributeDescriptor> |
deriveRowtimeAttributes(org.apache.flink.table.descriptors.DescriptorProperties properties)
已过时。
Finds the rowtime attributes if defined.
|
static org.apache.flink.table.api.TableSchema |
deriveTableSinkSchema(org.apache.flink.table.descriptors.DescriptorProperties properties)
已过时。
This method combines two separate concepts of table schema and field mapping.
This should be split into two methods once we have support for the corresponding
interfaces (see FLINK-9870).
|
static List<String> |
getSchemaDerivationKeys()
已过时。
Returns keys for a
TableFormatFactory.supportedProperties() method that are accepted
for schema derivation using deriveFormatFields(DescriptorProperties). |
void |
validate(org.apache.flink.table.descriptors.DescriptorProperties properties)
已过时。
|
public SchemaValidator(boolean isStreamEnvironment,
boolean supportsSourceTimestamps,
boolean supportsSourceWatermarks)
public void validate(org.apache.flink.table.descriptors.DescriptorProperties properties)
validate 在接口中 org.apache.flink.table.descriptors.DescriptorValidatorpublic static List<String> getSchemaDerivationKeys()
TableFormatFactory.supportedProperties() method that are accepted
for schema derivation using deriveFormatFields(DescriptorProperties).public static Optional<String> deriveProctimeAttribute(org.apache.flink.table.descriptors.DescriptorProperties properties)
public static List<org.apache.flink.table.sources.RowtimeAttributeDescriptor> deriveRowtimeAttributes(org.apache.flink.table.descriptors.DescriptorProperties properties)
@Deprecated public static org.apache.flink.table.api.TableSchema deriveTableSinkSchema(org.apache.flink.table.descriptors.DescriptorProperties properties)
public static Map<String,String> deriveFieldMapping(org.apache.flink.table.descriptors.DescriptorProperties properties, Optional<org.apache.flink.api.common.typeinfo.TypeInformation<?>> inputType)
properties - The properties describing a schema.inputType - The input type that a connector and/or format produces. This parameter can
be used to resolve a rowtime field against an input field.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.