blob: 8b0592e02eaccb5591614a856e760babf18542ea [file] [log] [blame]
vinayakb38b7ca42012-03-05 05:44:15 +00001use dataverse demo0927;
2
3declare type CustomerType as closed {
4 cid: int32,
5 name: string,
6 age: int32
7}
8
9declare type AddressType as closed {
10 number: int32,
11 street: string,
12 city: string
13}
14
15declare nodegroup group1 on nc1, nc2;
16
17declare dataset Customers(CustomerType)
ramangrover29669d8f62013-02-11 06:03:32 +000018 primary key cid on group1;
vinayakb38b7ca42012-03-05 05:44:15 +000019
20load dataset Customers
Ian Maxonf18bba22015-08-21 12:35:14 -070021using "org.apache.asterix.external.dataset.adapter.NCFileSystemAdapter"
vinayakb38b7ca42012-03-05 05:44:15 +000022(("path"="nc1://data/spj01/cust1.adm"),("format"="adm")) pre-sorted;