aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/parallelai/spyglass/hbase/HBaseConstants.java
blob: 7453d3e9ca195fc7e87f1251558c53bddb85dafd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package parallelai.spyglass.hbase;

import org.apache.hadoop.conf.Configuration;

/**
 * Static enums , strings
 */
public class HBaseConstants {

    public enum SourceMode {
        EMPTY,
        SCAN_ALL,
        SCAN_RANGE,
        GET_LIST;
    }

    public enum SplitType {
        GRANULAR,
        REGIONAL;
    }

    public static final String START_KEY = "hbase.%s.startkey";
    public static final String STOP_KEY = "hbase.%s.stopkey";
    public static final String SOURCE_MODE = "hbase.%s.source.mode";
    public static final String KEY_LIST = "hbase.%s.key.list";
    public static final String VERSIONS = "hbase.%s.versions";
    public static final String USE_SALT = "hbase.%s.use.salt";
    public static final String SALT_PREFIX = "hbase.%s.salt.prefix";

    public static final String SINK_MODE = "hbase.%s.sink.mode";
}