Project

General

Profile

1
package eu.dnetlib.data.mapreduce.hbase.dataexport;
2

    
3
import java.util.List;
4

    
5
import com.google.gson.Gson;
6

    
7
/**
8
 * Created by claudio on 27/01/16.
9
 */
10
public class OpenaireEntityId {
11

    
12
	private String id;
13

    
14
	private List<String> pids;
15

    
16
	private List<String> mergedIds;
17

    
18
	private boolean deleted;
19

    
20
	public OpenaireEntityId() {
21
	}
22

    
23
	public OpenaireEntityId(final String id, final List<String> mergedIds, final boolean deleted) {
24
		this.id = id;
25
		this.mergedIds = mergedIds;
26
		this.deleted = deleted;
27
	}
28

    
29
	public String getId() {
30
		return id;
31
	}
32

    
33
	public void setId(final String id) {
34
		this.id = id;
35
	}
36

    
37
	public List<String> getPids() {
38
		return pids;
39
	}
40

    
41
	public void setPids(final List<String> pids) {
42
		this.pids = pids;
43
	}
44

    
45
	public List<String> getMergedIds() {
46
		return mergedIds;
47
	}
48

    
49
	public void setMergedIds(final List<String> mergedIds) {
50
		this.mergedIds = mergedIds;
51
	}
52

    
53
	public boolean isDeleted() {
54
		return deleted;
55
	}
56

    
57
	public void setDeleted(final boolean deleted) {
58
		this.deleted = deleted;
59
	}
60

    
61
	@Override
62
	public String toString() {
63
		return new Gson().toJson(this);
64
	}
65

    
66
}
(4-4/4)