vinayakb | 38b7ca4 | 2012-03-05 05:44:15 +0000 | [diff] [blame^] | 1 | use dataverse demo0927; |
| 2 | |
| 3 | declare type CustomerType as closed { |
| 4 | cid: int32, |
| 5 | name: string, |
| 6 | age: int32 |
| 7 | } |
| 8 | |
| 9 | declare type AddressType as closed { |
| 10 | number: int32, |
| 11 | street: string, |
| 12 | city: string |
| 13 | } |
| 14 | |
| 15 | declare nodegroup group1 on nc1, nc2; |
| 16 | |
| 17 | declare dataset Customers(CustomerType) |
| 18 | partitioned by key cid on group1; |
| 19 | |
| 20 | load dataset Customers |
| 21 | using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter" |
| 22 | (("path"="nc1://data/spj01/cust1.adm"),("format"="adm")) pre-sorted; |