forked from D-Net/dnet-hadoop
celanup
This commit is contained in:
parent
e07feb4c5f
commit
5111671e62
|
@ -97,7 +97,7 @@ public class SparkCountryPropagationJob3 {
|
||||||
.read()
|
.read()
|
||||||
.json(inputPath)
|
.json(inputPath)
|
||||||
.as(Encoders.bean(resultClazz))
|
.as(Encoders.bean(resultClazz))
|
||||||
.groupByKey((MapFunction<R, String>) result1 -> result1.getId(), Encoders.STRING())
|
.groupByKey((MapFunction<R, String>) r -> r.getId(), Encoders.STRING())
|
||||||
.mapGroups(getCountryMergeFn(resultClazz), Encoders.bean(resultClazz))
|
.mapGroups(getCountryMergeFn(resultClazz), Encoders.bean(resultClazz))
|
||||||
.write()
|
.write()
|
||||||
.option("compression", "gzip")
|
.option("compression", "gzip")
|
||||||
|
|
Loading…
Reference in New Issue