vinayakb | 38b7ca4 | 2012-03-05 05:44:15 +0000 | [diff] [blame] | 1 | use dataverse demo1112; |
| 2 | |
| 3 | declare type MyRecord as open { |
| 4 | id: int32, |
| 5 | point: point, |
| 6 | kwds: string |
| 7 | } |
| 8 | |
| 9 | declare nodegroup group1 on nc1, nc2; |
| 10 | |
| 11 | set format "edu.uci.ics.asterix.runtime.formats.nontagged.NonTaggedDataFormat"; |
| 12 | |
| 13 | declare dataset MyData(MyRecord) |
| 14 | partitioned by key id on group1; |
| 15 | |
| 16 | load dataset MyData |
| 17 | using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter" |
| 18 | (("path"="nc1:///tmp/data.json"),("format"="adm")) pre-sorted; |