Jaql
Jaql (JAQL) はJSONで
Google[1]のオープンソースプロジェクトとして
また、JSON のみならず CSV、TSV、XMLなどにも
A[3] によると、PIG Latin and Hive QL などの
文法
JAQLの
source -> operator(parameter) -> sink ;
ここでsinkは
source -> operator1(parameter) -> operator2(parameter) -> operator2(parameter) -> operator3(parameter) -> operator4(parameter) -> sink ;
source -> operator1(parameter)
-> operator2(parameter)
-> operator2(parameter)
-> operator3(parameter)
-> operator4(parameter)
-> sink ;
EXPAND
EXPAND
FILTER
FILTER
WHERE
data = [
{name: "Jon Doe", income: 20000, mgr: false},
{name: "Vince Wayne", income: 32500, mgr: false},
{name: "Jane Dean", income: 72000, mgr: true},
{name: "Alex Smith", income: 25000, mgr: false}
];
data -> filter $.mgr;
[
{
"income": 72000,
"mgr": true,
"name": "Jane Dean"
}
]
data -> filter $.income < 30000;
[
{
"income": 20000,
"mgr": false,
"name": "Jon Doe"
},
{
"income": 25000,
"mgr": false,
"name": "Alex Smith"
}
]
GROUP
GROUP
JOIN
JOIN
natural
、left-outer
、right-outer
、outer joins
を
SORT
SORT
TOP
TOP
TRANSFORM
TRANSFORM