Project

General

Profile

1
package eu.dnetlib.actionmanager;
2

    
3
import org.apache.hadoop.hbase.util.Bytes;
4

    
5
public class ActionManagerConstants {
6

    
7
	public static enum COLUMN_FAMILIES {
8
		action, rel, status, set, target, operation, date, agent
9
	}
10

    
11
	public static enum ACTION_TYPE {
12
		aac, //atomicAction, 
13
		pkg, //infoPackage, 
14
		all //all
15
	}
16

    
17
	public static final byte[] ACTION_COLFAMILY = Bytes.toBytes(COLUMN_FAMILIES.action.toString());
18
	public static final byte[] RELATION_COLFAMILY = Bytes.toBytes(COLUMN_FAMILIES.rel.toString());
19
	public static final byte[] STATUS_COLFAMILY = Bytes.toBytes(COLUMN_FAMILIES.status.toString());
20
	public static final byte[] SET_COLFAMILY = Bytes.toBytes(COLUMN_FAMILIES.set.toString());
21
	public static final byte[] TARGET_COLFAMILY = Bytes.toBytes(COLUMN_FAMILIES.target.toString());
22
	public static final byte[] OPERATION_COLFAMILY = Bytes.toBytes(COLUMN_FAMILIES.operation.toString());
23
	public static final byte[] DATE_COLFAMILY = Bytes.toBytes(COLUMN_FAMILIES.date.toString());
24
	public static final byte[] AGENT_COLFAMILY = Bytes.toBytes(COLUMN_FAMILIES.agent.toString());
25

    
26
	public static final byte[] OPERATION_COL = Bytes.toBytes("operation");
27
	public static final byte[] TARGET_KEY_COL = Bytes.toBytes("rowKey");
28
	public static final byte[] TARGET_COLFAMILY_COL = Bytes.toBytes("columnFamily");
29
	public static final byte[] TARGET_COL_COL = Bytes.toBytes("column");
30
	public static final byte[] TARGET_OAF_COL = Bytes.toBytes("content");
31
	public static final byte[] HASPARTS = Bytes.toBytes("hasParts");
32
	public static final byte[] ISPARTOF = Bytes.toBytes("isPartOf");
33

    
34
	public static final byte[] AGENT_ID_COL = Bytes.toBytes("id");
35
	public static final byte[] AGENT_NAME_COL = Bytes.toBytes("name");
36
	public static final byte[] AGENT_TYPE_COL = Bytes.toBytes("type");
37

    
38
}
    (1-1/1)