vinayakb | 38b7ca4 | 2012-03-05 05:44:15 +0000 | [diff] [blame] | 1 | use dataverse demo0927; |
| 2 | |
| 3 | declare type OrderType as closed { |
| 4 | oid: int32, |
| 5 | cid: int32, |
| 6 | orderstatus: string, |
| 7 | orderpriority: string, |
| 8 | clerk: string, |
| 9 | total: float |
| 10 | } |
| 11 | |
| 12 | declare nodegroup group1 on nc1, nc2; |
| 13 | |
| 14 | declare dataset Orders(OrderType) |
ramangrover29 | 669d8f6 | 2013-02-11 06:03:32 +0000 | [diff] [blame] | 15 | primary key oid on group1; |
vinayakb | 38b7ca4 | 2012-03-05 05:44:15 +0000 | [diff] [blame] | 16 | |
| 17 | load dataset Orders from nc1:"/tmp/orderData.json"; |
| 18 | using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter" |
| 19 | (("path"="nc1:///tmp/orderData.json"),("format"="adm")) pre-sorted; |
| 20 | |