Package org.apache.flink.table.types
Class FieldsDataType
java.lang.Object
org.apache.flink.table.types.DataType
org.apache.flink.table.types.FieldsDataType
- All Implemented Interfaces:
Serializable,AbstractDataType<DataType>
A data type that contains field data types (i.e. row and structured type).
-
Field Summary
Fields inherited from class org.apache.flink.table.types.DataType
conversionClass, logicalType -
Constructor Summary
ConstructorsConstructorDescriptionFieldsDataType(LogicalType logicalType, Class<?> conversionClass, List<DataType> fieldDataTypes) FieldsDataType(LogicalType logicalType, List<DataType> fieldDataTypes) -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(DataTypeVisitor<R> visitor) Adds a hint that data should be represented using the given class when entering or leaving the table ecosystem.booleanReturns the children of this data type, if any.inthashCode()notNull()Adds a hint that null values are not expected in the data for this type.nullable()Adds a hint that null values are expected in the data for this type (default behavior).Methods inherited from class org.apache.flink.table.types.DataType
getConversionClass, getFieldCount, getFieldDataTypes, getFieldNames, getFields, getLogicalType, toInternal, toString
-
Constructor Details
-
FieldsDataType
public FieldsDataType(LogicalType logicalType, @Nullable Class<?> conversionClass, List<DataType> fieldDataTypes) -
FieldsDataType
-
-
Method Details
-
notNull
Description copied from interface:AbstractDataTypeAdds a hint that null values are not expected in the data for this type.- Returns:
- a new, reconfigured data type instance
-
nullable
Description copied from interface:AbstractDataTypeAdds a hint that null values are expected in the data for this type (default behavior).This method exists for explicit declaration of the default behavior or for invalidation of a previous call to
AbstractDataType.notNull().- Returns:
- a new, reconfigured data type instance
-
bridgedTo
Description copied from interface:AbstractDataTypeAdds a hint that data should be represented using the given class when entering or leaving the table ecosystem.A supported conversion class depends on the logical type and its nullability property.
Please see the implementation of
LogicalType.supportsInputConversion(Class),LogicalType.supportsOutputConversion(Class), or the documentation for more information about supported conversions.- Returns:
- a new, reconfigured data type instance
-
getChildren
Description copied from class:DataTypeReturns the children of this data type, if any. Returns an empty list if this data type is atomic.- Specified by:
getChildrenin classDataType- Returns:
- the children data types
-
accept
-
equals
-
hashCode
public int hashCode()
-