public class MixedDataType extends DataType
JsonHandler.parseJson(ColumnVector, StructType), the Kernel
needs to specify the exact schema of the data, but depending upon the type serialized (`int` vs
`map`), the serialized JSON could have different schema.
`int` type column schema is serialized as:
{
"name" : "a",
"type" : "integer",
"nullable" : false,
"metadata" : { }
}
`struct` type column schema is serialized as:
{
"name" : "b",
"type" : {
"type" : "struct",
"fields" : [ {
"name" : "d",
"type" : "integer",
"nullable" : false,
"metadata" : { }
} ]
},
"nullable" : true,
"metadata" : { }
}
Whenever this type is specified, reader should expect either a `string` value or `struct` value.
The implementation of reader should convert the `string` or `struct` value to `string` type.
Reader implementations can expect this type only for JSON format data reading cases only.| Modifier and Type | Field and Description |
|---|---|
static MixedDataType |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toJson()
Convert the data type to Delta protocol specified serialization format.
|
java.lang.String |
toString() |
equivalentpublic static final MixedDataType INSTANCE
public java.lang.String toJson()
DataType