Skip to content

Instantly share code, notes, and snippets.

@saptarshiguha
Created March 14, 2011 02:17
Show Gist options
  • Save saptarshiguha/868664 to your computer and use it in GitHub Desktop.
Save saptarshiguha/868664 to your computer and use it in GitHub Desktop.
Testing AVSC File
{
"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