From 29dcff0f34b99f940966140fe635db8aa8b2c2df Mon Sep 17 00:00:00 2001 From: Claudio Atzori Date: Wed, 18 Nov 2020 14:32:32 +0100 Subject: [PATCH] spark complains about missing classes, so here they are again --- dhp-workflows/dhp-graph-provision/pom.xml | 10 ---------- .../model/SerializableSolrInputDocument.java | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 10 deletions(-) create mode 100644 dhp-workflows/dhp-graph-provision/src/main/java/eu/dnetlib/dhp/oa/provision/model/SerializableSolrInputDocument.java diff --git a/dhp-workflows/dhp-graph-provision/pom.xml b/dhp-workflows/dhp-graph-provision/pom.xml index 38b575f3e..1547056b9 100644 --- a/dhp-workflows/dhp-graph-provision/pom.xml +++ b/dhp-workflows/dhp-graph-provision/pom.xml @@ -14,16 +14,6 @@ org.apache.spark spark-core_2.11 - - - org.slf4j - slf4j-api - - - org.slf4j - jul-to-slf4j - - org.apache.spark diff --git a/dhp-workflows/dhp-graph-provision/src/main/java/eu/dnetlib/dhp/oa/provision/model/SerializableSolrInputDocument.java b/dhp-workflows/dhp-graph-provision/src/main/java/eu/dnetlib/dhp/oa/provision/model/SerializableSolrInputDocument.java new file mode 100644 index 000000000..e8d910e8c --- /dev/null +++ b/dhp-workflows/dhp-graph-provision/src/main/java/eu/dnetlib/dhp/oa/provision/model/SerializableSolrInputDocument.java @@ -0,0 +1,19 @@ +package eu.dnetlib.dhp.oa.provision.model; + +import org.apache.solr.common.SolrInputDocument; +import org.apache.solr.common.SolrInputField; + +import java.util.HashMap; +import java.util.Map; + +public class SerializableSolrInputDocument extends SolrInputDocument { + + public SerializableSolrInputDocument() { + super(new HashMap<>()); + } + + public SerializableSolrInputDocument(Map fields) { + super(fields); + } + +}