blob: 15ba4cfe717ebdd44d476c343160ca9942b19a9d [file] [log] [blame]
vinayakb38b7ca42012-03-05 05:44:15 +00001use dataverse demo0927;
2
3declare type OrderType as closed {
4 oid: int32,
5 cid: int32,
6 orderstatus: string,
7 orderpriority: string,
8 clerk: string,
9 total: float
10}
11
12declare nodegroup group1 on nc1, nc2;
13
14declare dataset Orders(OrderType)
15 partitioned by key oid on group1;
16
17load dataset Orders from nc1:"/tmp/orderData.json";
18using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter"
19(("path"="nc1:///tmp/orderData.json"),("format"="adm")) pre-sorted;
20