Created
March 14, 2011 02:17
-
-
Save saptarshiguha/868664 to your computer and use it in GitHub Desktop.
Testing AVSC File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name" : "rObject", | |
"type" : "record", | |
"namespace" : "org.godhuli.ravro", | |
"fields" : [ | |
{ | |
"name" : "data", | |
"type": | |
[ | |
"null" | |
"int", | |
"double", | |
{ | |
"type" : "array", | |
"items" : [ | |
"double", | |
"int", | |
{ | |
"type" : "record", | |
"name" : "complex", | |
"fields" : [ | |
{"name" : "re" , "type" : "double"}, | |
{"name" : "im" , "type" : "double"} | |
] | |
}, | |
{ | |
"type" : "record", | |
"name" : "character", | |
"doc" : "An R string might be a character or NA which for us is null", | |
"fields" : [ | |
{"name": "value", "type" : ["null","string"]} | |
] | |
}, | |
{ | |
"type" : "record", | |
"name" : "logical", | |
"doc" : "An R logical might be a T/F or NA which for us is null", | |
"fields" : [ | |
{"name": "value", "type" : ["null","boolean"]} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"name" : "attributes", | |
"doc" : "Every R object has attributes which itself can be an R object; turtles all the way", | |
"type": [ | |
"null", | |
{ | |
"type" : "map", | |
"values" :"rObject" | |
}] | |
} | |
] | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment