1
|
package eu.dnetlib.data.mapreduce.hbase.dataexport;
|
2
|
|
3
|
import java.util.List;
|
4
|
import java.util.Map;
|
5
|
|
6
|
import com.google.gson.Gson;
|
7
|
|
8
|
/**
|
9
|
* Created by claudio on 27/01/16.
|
10
|
*/
|
11
|
public class OpenaireEntityId {
|
12
|
|
13
|
private String id;
|
14
|
|
15
|
private Map<String, List<String>> pids;
|
16
|
|
17
|
private List<String> mergedIds;
|
18
|
|
19
|
private boolean deleted;
|
20
|
|
21
|
public OpenaireEntityId() {
|
22
|
}
|
23
|
|
24
|
public OpenaireEntityId(final String id, final List<String> mergedIds, final boolean deleted) {
|
25
|
this.id = id;
|
26
|
this.mergedIds = mergedIds;
|
27
|
this.deleted = deleted;
|
28
|
}
|
29
|
|
30
|
public String getId() {
|
31
|
return id;
|
32
|
}
|
33
|
|
34
|
public void setId(final String id) {
|
35
|
this.id = id;
|
36
|
}
|
37
|
|
38
|
public Map<String, List<String>> getPids() {
|
39
|
return pids;
|
40
|
}
|
41
|
|
42
|
public void setPids(final Map<String, List<String>> pids) {
|
43
|
this.pids = pids;
|
44
|
}
|
45
|
|
46
|
public List<String> getMergedIds() {
|
47
|
return mergedIds;
|
48
|
}
|
49
|
|
50
|
public void setMergedIds(final List<String> mergedIds) {
|
51
|
this.mergedIds = mergedIds;
|
52
|
}
|
53
|
|
54
|
public boolean isDeleted() {
|
55
|
return deleted;
|
56
|
}
|
57
|
|
58
|
public void setDeleted(final boolean deleted) {
|
59
|
this.deleted = deleted;
|
60
|
}
|
61
|
|
62
|
@Override
|
63
|
public String toString() {
|
64
|
return new Gson().toJson(this);
|
65
|
}
|
66
|
|
67
|
}
|