Ejemplo n.º 1
0
 public override sealed DataType FromJson(JObject json)
 {
     elementType = ParseDataTypeFromJson(json["elementType"]);
     containsNull = (bool)json["containsNull"];
     return this;
 }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 public ArrayType(DataType elementType, bool containsNull = true)
 {
     this.elementType = elementType;
     this.containsNull = containsNull;
 }