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