forked from D-Net/dnet-hadoop
[OpenCitation] refactoring
This commit is contained in:
parent
759ed519f2
commit
5c4043dba8
|
@ -90,9 +90,6 @@ public class CreateActionSetSparkJob implements Serializable {
|
|||
.map(
|
||||
(MapFunction<String, COCI>) value -> OBJECT_MAPPER.readValue(value, COCI.class),
|
||||
Encoders.bean(COCI.class))
|
||||
// spark
|
||||
// .sqlContext()
|
||||
// .createDataset(spark.sparkContext().textFile(inputPath + "/*", 6000), Encoders.STRING())
|
||||
.flatMap(
|
||||
(FlatMapFunction<COCI, Relation>) value -> createRelation(value, shouldDuplicateRels).iterator(),
|
||||
Encoders.bean(Relation.class))
|
||||
|
|
Loading…
Reference in New Issue