Package io.delta.kernel.types
Class MapType
Object
io.delta.kernel.types.DataType
io.delta.kernel.types.MapType
Data type representing a
map type.- Since:
- 3.0.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanequivalent(DataType dataType) Are the data types same? The metadata, collations or column names could be different.inthashCode()booleanisNested()Returns true iff this data is a nested data type (it logically parameterized by other types).booleanbooleanisWriteCompatible(DataType dataType) Checks whether the givendataTypeis compatible with this type when writing data.toString()Methods inherited from class io.delta.kernel.types.DataType
isTypeValueBinaryLike
-
Field Details
-
MAP_KEY_NAME
- See Also:
-
MAP_VALUE_NAME
- See Also:
-
-
Constructor Details
-
MapType
-
MapType
-
-
Method Details
-
getKeyField
-
getValueField
-
getKeyType
-
getValueType
-
isValueContainsNull
public boolean isValueContainsNull() -
equivalent
Description copied from class:DataTypeAre the data types same? The metadata, collations or column names could be different.Should be used for schema comparisons during schema evolution.
- Overrides:
equivalentin classDataType- Parameters:
dataType-- Returns:
-
isWriteCompatible
Checks whether the givendataTypeis compatible with this type when writing data. Collation differences are ignored.This method is intended to be used during the write path to validate that an input type matches the expected schema before data is written.
It should not be used in other cases, such as the read path.
- Overrides:
isWriteCompatiblein classDataType- Parameters:
dataType- the input data type being written- Returns:
trueif the input type is compatible with this type.
-
equals
-
isNested
public boolean isNested()Description copied from class:DataTypeReturns true iff this data is a nested data type (it logically parameterized by other types).For example StructType, ArrayType, MapType are nested data types.
-
hashCode
public int hashCode() -
toString
-