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 | |
Ian Maxon | f18bba2 | 2015-08-21 12:35:14 -0700 | [diff] [blame^] | 11 | set format "org.apache.asterix.runtime.formats.nontagged.NonTaggedDataFormat"; |
vinayakb | 38b7ca4 | 2012-03-05 05:44:15 +0000 | [diff] [blame] | 12 | |
| 13 | declare dataset MyData(MyRecord) |
ramangrover29 | 669d8f6 | 2013-02-11 06:03:32 +0000 | [diff] [blame] | 14 | primary key id on group1; |
vinayakb | 38b7ca4 | 2012-03-05 05:44:15 +0000 | [diff] [blame] | 15 | |
| 16 | load dataset MyData |
Ian Maxon | f18bba2 | 2015-08-21 12:35:14 -0700 | [diff] [blame^] | 17 | using "org.apache.asterix.external.dataset.adapter.NCFileSystemAdapter" |
vinayakb | 38b7ca4 | 2012-03-05 05:44:15 +0000 | [diff] [blame] | 18 | (("path"="nc1:///tmp/data.json"),("format"="adm")) pre-sorted; |