blob: 057bdae9fb244a87f73e33d5be227d6036676175 [file] [log] [blame]
vinayakb38b7ca42012-03-05 05:44:15 +00001/* scan and print 2 ADM file splits as an external dataset of closed records */
2drop dataverse test if exists;
3create dataverse test;
4use dataverse test;
5
6create type DBLPType as closed {
7 id: int32,
8 dblpid: string,
9 title: string,
10 authors: string,
11 misc: string
12}
13
14create nodegroup group1 if not exists on nc1;
15
16create external dataset DBLPsplits(DBLPType)
17using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter"
18(("path"="nc1://data/dblp-small/dblp-small.adm"),("format"="adm"));
19
20write output to nc1:"rttest/scan_30.adm";
21
22for $paper in dataset('DBLPsplits')
23return $paper