public class TableSchemaSerDe
extends java.lang.Object
StructType.| Modifier and Type | Method and Description |
|---|---|
static StructType |
fromJson(JsonHandler jsonHandler,
java.lang.String serializedStructType)
Deserialize the table schema from
serializedStructType using the given
tableClient |
static java.lang.String |
toJson(StructType structType)
Serialize the given table schema
structType as JSON. |
public static java.lang.String toJson(StructType structType)
structType as JSON. This should produce Delta
Protocol complaint format.structType - Data type to serializepublic static StructType fromJson(JsonHandler jsonHandler, java.lang.String serializedStructType)
serializedStructType using the given
tableClientjsonHandler - An instance of JsonHandler to use for parsing
JSON operations.serializedStructType - Table schema in JSON format compliant with the Delta Protocol.