Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
|
|
@ -5,11 +5,11 @@ sub hashJoin {
|
|||
my %h;
|
||||
# hash phase
|
||||
foreach my $s (@$table1) {
|
||||
push @{ $h{$s->[$index1]} }, $s;
|
||||
push @{ $h{$s->[$index1]} }, $s;
|
||||
}
|
||||
# join phase
|
||||
map { my $r = $_;
|
||||
map [$_, $r], @{ $h{$r->[$index2]} }
|
||||
map [$_, $r], @{ $h{$r->[$index2]} }
|
||||
} @$table2;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue