1
|
package eu.dnetlib.data.mapreduce.hbase.dedup;
|
2
|
|
3
|
import java.util.List;
|
4
|
|
5
|
import com.google.gson.Gson;
|
6
|
|
7
|
public class RootEntity {
|
8
|
|
9
|
private String joaf;
|
10
|
private List<String> mergedIds;
|
11
|
|
12
|
public RootEntity() {}
|
13
|
|
14
|
public RootEntity(final String joaf, final List<String> mergedIds) {
|
15
|
super();
|
16
|
this.setJoaf(joaf);
|
17
|
this.setMergedIds(mergedIds);
|
18
|
}
|
19
|
|
20
|
public static RootEntity decode(final String s) {
|
21
|
return new Gson().fromJson(s, RootEntity.class);
|
22
|
}
|
23
|
|
24
|
@Override
|
25
|
public String toString() {
|
26
|
return new Gson().toJson(this);
|
27
|
}
|
28
|
|
29
|
public String getJoaf() {
|
30
|
return joaf;
|
31
|
}
|
32
|
|
33
|
public void setJoaf(final String joaf) {
|
34
|
this.joaf = joaf;
|
35
|
}
|
36
|
|
37
|
public List<String> getMergedIds() {
|
38
|
return mergedIds;
|
39
|
}
|
40
|
|
41
|
public void setMergedIds(final List<String> mergedIds) {
|
42
|
this.mergedIds = mergedIds;
|
43
|
}
|
44
|
}
|