[person] -
This commit is contained in:
parent
01679c935a
commit
a7699558ed
|
@ -140,6 +140,8 @@ public class SparkExtractPersonRelations {
|
|||
.flatMap(
|
||||
(FlatMapFunction<Result, Relation>) r -> getAuthorshipRelations(r),
|
||||
Encoders.bean(Relation.class))
|
||||
// .groupByKey((MapFunction<Relation, String>) r-> r.getSource()+r.getTarget(), Encoders.STRING() )
|
||||
// .mapGroups((MapGroupsFunction<String, Relation, Relation>) (k,it) -> it.next(), Encoders.bean(Relation.class) )
|
||||
.map(
|
||||
(MapFunction<Relation, Tuple2<String, Relation>>) r -> new Tuple2<>(
|
||||
r.getSource() + r.getRelClass() + r.getTarget(), r),
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue