blob: 539873251e238234389ebd70d87075d805194d35 [file] [log] [blame]
vinayakb38b7ca42012-03-05 05:44:15 +00001use dataverse demo1112;
2
3declare type MyRecord as open {
4 id: int32,
5 point: point,
6 kwds: string
7}
8
9declare nodegroup group1 on nc1, nc2;
10
Ian Maxonf18bba22015-08-21 12:35:14 -070011set format "org.apache.asterix.runtime.formats.nontagged.NonTaggedDataFormat";
vinayakb38b7ca42012-03-05 05:44:15 +000012
13declare dataset MyData(MyRecord)
ramangrover29669d8f62013-02-11 06:03:32 +000014 primary key id on group1;
vinayakb38b7ca42012-03-05 05:44:15 +000015
16load dataset MyData
Ian Maxonf18bba22015-08-21 12:35:14 -070017using "org.apache.asterix.external.dataset.adapter.NCFileSystemAdapter"
vinayakb38b7ca42012-03-05 05:44:15 +000018(("path"="nc1:///tmp/data.json"),("format"="adm")) pre-sorted;