Compare commits

...

2 Commits

@ -128,12 +128,11 @@ public class SparkPrepareOrgRels extends AbstractSparkAction {
List<String> ids = sortIds(l);
List<Tuple3<String, String, String>> rels = new ArrayList<>();
for (String source : ids) {
if (source.contains("openorgs____") || ids.indexOf(source) == 0)
for (String target : ids) {
rels.add(new Tuple3<>(source, target, groupId));
}
String source = ids.get(0);
for (String target : ids) {
rels.add(new Tuple3<>(source, target, groupId));
}
return rels.iterator();
})
.rdd(),

Loading…
Cancel
Save