public override sealed DataType FromJson(JObject json) { elementType = ParseDataTypeFromJson(json["elementType"]); containsNull = (bool)json["containsNull"]; return this; }
public StructField(string name, DataType dataType, bool isNullable = true, JObject metadata = null) { this.name = name; this.dataType = dataType; this.isNullable = isNullable; this.metadata = metadata ?? new JObject(); }
public override sealed DataType FromJson(JObject json) { name = json["name"].ToString(); dataType = ParseDataTypeFromJson(json["type"]); isNullable = (bool)json["nullable"]; metadata = (JObject)json["metadata"]; return this; }
public ArrayType(DataType elementType, bool containsNull = true) { this.elementType = elementType; this.containsNull = containsNull; }