Class SchemaValidator
java.lang.Object
org.apache.flink.legacy.table.descriptors.SchemaValidator
- All Implemented Interfaces:
org.apache.flink.table.descriptors.DescriptorValidator
@Deprecated
@Internal
public class SchemaValidator
extends Object
implements org.apache.flink.table.descriptors.DescriptorValidator
Deprecated.
Validator for
Schema.-
Constructor Summary
ConstructorsConstructorDescriptionSchemaValidator(boolean isStreamEnvironment, boolean supportsSourceTimestamps, boolean supportsSourceWatermarks) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionderiveFieldMapping(org.apache.flink.table.descriptors.DescriptorProperties properties, Optional<org.apache.flink.api.common.typeinfo.TypeInformation<?>> inputType) Deprecated.Finds a table source field mapping.deriveProctimeAttribute(org.apache.flink.table.descriptors.DescriptorProperties properties) Deprecated.Finds the proctime attribute if defined.static List<org.apache.flink.table.legacy.sources.RowtimeAttributeDescriptor>deriveRowtimeAttributes(org.apache.flink.table.descriptors.DescriptorProperties properties) Deprecated.Finds the rowtime attributes if defined.static org.apache.flink.table.legacy.api.TableSchemaderiveTableSinkSchema(org.apache.flink.table.descriptors.DescriptorProperties properties) Deprecated.This method combines two separate concepts of table schema and field mapping.voidvalidate(org.apache.flink.table.descriptors.DescriptorProperties properties) Deprecated.
-
Constructor Details
-
SchemaValidator
public SchemaValidator(boolean isStreamEnvironment, boolean supportsSourceTimestamps, boolean supportsSourceWatermarks) Deprecated.
-
-
Method Details
-
validate
public void validate(org.apache.flink.table.descriptors.DescriptorProperties properties) Deprecated.- Specified by:
validatein interfaceorg.apache.flink.table.descriptors.DescriptorValidator
-
deriveProctimeAttribute
public static Optional<String> deriveProctimeAttribute(org.apache.flink.table.descriptors.DescriptorProperties properties) Deprecated.Finds the proctime attribute if defined. -
deriveRowtimeAttributes
public static List<org.apache.flink.table.legacy.sources.RowtimeAttributeDescriptor> deriveRowtimeAttributes(org.apache.flink.table.descriptors.DescriptorProperties properties) Deprecated.Finds the rowtime attributes if defined. -
deriveTableSinkSchema
@Deprecated public static org.apache.flink.table.legacy.api.TableSchema deriveTableSinkSchema(org.apache.flink.table.descriptors.DescriptorProperties properties) Deprecated.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).Derives the table schema for a table sink. A sink ignores a proctime attribute and needs to track the origin of a rowtime field. -
deriveFieldMapping
public static Map<String,String> deriveFieldMapping(org.apache.flink.table.descriptors.DescriptorProperties properties, Optional<org.apache.flink.api.common.typeinfo.TypeInformation<?>> inputType) Deprecated.Finds a table source field mapping.- Parameters:
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.
-
Schemafor details.