blob: 8438ae96582c88363e19602eb9a39de94cbb3b43 [file] [log] [blame]
drop dataverse fuzzyjoin if exists;
create dataverse fuzzyjoin;
use dataverse fuzzyjoin;
create type DBLPType as open {
id: int32,
dblpid: string,
title: string,
authors: string,
misc: string
}
create dataset DBLP(DBLPType) partitioned by key id;
load dataset DBLP
using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter"
(("path"="nc1://data/pub-small/dblp-small-id.txt"),("format"="delimited-text"),("delimiter"=":")) pre-sorted;
write output to nc1:'rttest/fuzzyjoin_dblp-1_1.adm';
//
// -- - Stage 1 - --
//
for $paper in dataset('DBLP')
for $token in counthashed-word-tokens($paper.title)
group by $tokenGroupped := $token with $paper
order by count($paper), $tokenGroupped
return $tokenGroupped