Friday 17 July 2015

JSON and JAQL

High level query language:
Pig (from Yahoo)
Jaql (from IBM)
Hive (from Facebook)

JSON:
JavaScript Open Notation
language independent like XML
Text based
JSON is not a document format
It is not a markup language

JSON File format:
Data types:
String
Number
Boolean
Objects
Arrays
Arrays : [1, 2, 3,...]
Objects are wrapped in {}
, separates key, value pairs
Example:
{
"Name":"Dnivog",
"at large":true,
"grade":"C",
"level":3,
"format":{"type:"rect", "width":1220}
}

Query laguage for JSON is JAQL.

JAQL is a scripting language.
semi structured analysis
parralelism
extensibility

JAQL can run from:
shell
Java Program
Eclipse

Query:
source, operators, sink

a sink is anything to which data can be written.

source-operator(parameters)-sink

No comments:

Post a Comment