blob: a07aab2367a85799971a41e41a508ae6f94ac1f9 [file] [log] [blame]
/* scan and print an ADM file as a dataset of closed records */
drop dataverse test if exists;
create dataverse test;
use dataverse test;
create type DBLPType as closed {
id: int32,
dblpid: string,
title: string,
authors: string,
misc: string
}
create nodegroup group1 if not exists on nc1;
create dataset DBLPadm(DBLPType)
partitioned by key id on group1;
// drop dataset DBLPadm;
load dataset DBLPadm
using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter"
(("path"="nc1://data/dblp-small/dblp-small.adm"),("format"="adm"));
write output to nc1:"rttest/scan_20.adm";
for $paper in dataset('DBLPadm')
order by $paper.id
return $paper