blob: 04238ef812029bf213d749e57ae92bf4b12c976d [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
vinayakb38b7ca42012-03-05 05:44:15 +000014create external dataset DBLPsplits(DBLPType)
15using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter"
16(("path"="nc1://data/dblp-small/dblp-small.adm"),("format"="adm"));
17
18write output to nc1:"rttest/scan_30.adm";
19
20for $paper in dataset('DBLPsplits')
21return $paper