forked from D-Net/dnet-hadoop
changed priority from beta to production
This commit is contained in:
parent
1781609508
commit
47c7122773
|
@ -96,11 +96,11 @@ public class MergeGraphSparkJob {
|
||||||
.map((MapFunction<Tuple2<Tuple2<String, P>, Tuple2<String, B>>, P>) value -> {
|
.map((MapFunction<Tuple2<Tuple2<String, P>, Tuple2<String, B>>, P>) value -> {
|
||||||
Optional<P> p = Optional.ofNullable(value._1()).map(Tuple2::_2);
|
Optional<P> p = Optional.ofNullable(value._1()).map(Tuple2::_2);
|
||||||
Optional<B> b = Optional.ofNullable(value._2()).map(Tuple2::_2);
|
Optional<B> b = Optional.ofNullable(value._2()).map(Tuple2::_2);
|
||||||
if (p.isPresent() & !b.isPresent()) {
|
if (b.isPresent() & !p.isPresent()) {
|
||||||
return p.get();
|
return (P)b.get();
|
||||||
}
|
}
|
||||||
if (b.isPresent()) {
|
if (p.isPresent()) {
|
||||||
return (P) b.get();
|
return p.get();
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}, Encoders.bean(p_clazz))
|
}, Encoders.bean(p_clazz))
|
||||||
|
|
Loading…
Reference in New Issue