1
0
Fork 0
This commit is contained in:
Claudio Atzori 2020-05-07 11:47:00 +02:00
parent e07feb4c5f
commit 5111671e62
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ public class SparkCountryPropagationJob3 {
.read()
.json(inputPath)
.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))
.write()
.option("compression", "gzip")