aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/parallelai/spyglass/jdbc/JDBCConstants.java
blob: 429b401d27b44de90230cb073aab05e6e852abcf (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
package parallelai.spyglass.jdbc;

import org.apache.hadoop.conf.Configuration;

public class JDBCConstants {
  
  public enum JdbcSourceMode {
    SELECT,
    SELECT_WITH_PARTITIONS,
    SELECT_WITH_BUCKETS;
  }

  public enum JdbcSinkMode {
	INSERT,
	UPDATE,
	UPSERT,
	BATCH_INSERT,
	BATCH_UPSERT,
	MULTI_ROW_INSERT,
	MULTI_ROW_UPSERT;
  }
  
  public static final String START_KEY = "jdbc.%s.startkey";
  public static final String STOP_KEY = "jdbc.%s.stopkey"; 
  public static final String SOURCE_MODE = "jdbc.%s.source.mode";
  public static final String KEY_LIST = "jdbc.%s.key.list";
  public static final String VERSIONS = "jdbc.%s.versions";

}