@@ -70,7 +70,7 @@ public enum PropertyType {
70
70
public static final String ORIGIN_WRITETIME_COLS = "spark.query.writetime.cols" ; // 2,3
71
71
public static final String ORIGIN_IS_COUNTER = "spark.counterTable" ; // false
72
72
public static final String ORIGIN_COUNTER_CQL = "spark.counterTable.cql" ;
73
- public static final String ORIGIN_COUNTER_INDEX = "spark.counterTable.cql.index" ; // 0
73
+ public static final String ORIGIN_COUNTER_INDEXES = "spark.counterTable.cql.index" ; // 0
74
74
static {
75
75
types .put (ORIGIN_KEYSPACE_TABLE , PropertyType .STRING );
76
76
required .add (ORIGIN_KEYSPACE_TABLE );
@@ -85,8 +85,8 @@ public enum PropertyType {
85
85
types .put (ORIGIN_IS_COUNTER , PropertyType .BOOLEAN );
86
86
defaults .put (ORIGIN_IS_COUNTER , "false" );
87
87
types .put (ORIGIN_COUNTER_CQL , PropertyType .STRING );
88
- types .put (ORIGIN_COUNTER_INDEX , PropertyType .NUMBER_LIST );
89
- defaults .put (ORIGIN_COUNTER_INDEX , "0" );
88
+ types .put (ORIGIN_COUNTER_INDEXES , PropertyType .NUMBER_LIST );
89
+ defaults .put (ORIGIN_COUNTER_INDEXES , "0" );
90
90
91
91
}
92
92
@@ -98,11 +98,10 @@ public enum PropertyType {
98
98
public static final String ORIGIN_FILTER_WRITETS_MIN = "spark.origin.minWriteTimeStampFilter" ; // 0
99
99
public static final String ORIGIN_FILTER_WRITETS_MAX = "spark.origin.maxWriteTimeStampFilter" ; // 4102444800000000
100
100
public static final String ORIGIN_FILTER_COLUMN_ENABLED = "spark.origin.FilterData" ; // false
101
- public static final String ORIGIN_FILTER_COLUMN_NAME = "spark.origin.FilterColumn" ; // test
102
101
public static final String ORIGIN_FILTER_COLUMN_INDEX = "spark.origin.FilterColumnIndex" ; // 2
103
102
public static final String ORIGIN_FILTER_COLUMN_TYPE = "spark.origin.FilterColumnType" ; // 6%16
104
103
public static final String ORIGIN_FILTER_COLUMN_VALUE = "spark.origin.FilterColumnValue" ; // test
105
- public static final String ORIGIN_COVERAGE_PERCENT = "spark.coveragePercent" ; // 100
104
+ public static final String ORIGIN_COVERAGE_PERCENT = "spark.coveragePercent" ; // 100
106
105
public static final String ORIGIN_HAS_RANDOM_PARTITIONER = "spark.origin.hasRandomPartitioner" ; // false
107
106
108
107
public static final String ORIGIN_CHECK_COLSIZE_ENABLED = "spark.origin.checkTableforColSize" ; // false
@@ -119,7 +118,6 @@ public enum PropertyType {
119
118
defaults .put (ORIGIN_FILTER_WRITETS_MAX , "0" );
120
119
types .put (ORIGIN_FILTER_COLUMN_ENABLED , PropertyType .BOOLEAN );
121
120
defaults .put (ORIGIN_FILTER_COLUMN_ENABLED , "false" );
122
- types .put (ORIGIN_FILTER_COLUMN_NAME , PropertyType .STRING );
123
121
types .put (ORIGIN_FILTER_COLUMN_INDEX , PropertyType .NUMBER );
124
122
defaults .put (ORIGIN_FILTER_COLUMN_INDEX , "0" );
125
123
types .put (ORIGIN_FILTER_COLUMN_TYPE , PropertyType .MIGRATION_TYPE );
@@ -140,6 +138,7 @@ public enum PropertyType {
140
138
//==========================================================================
141
139
public static final String TARGET_KEYSPACE_TABLE = "spark.target.keyspaceTable" ; // test.a1
142
140
public static final String TARGET_PRIMARY_KEY = "spark.query.target.id" ; // comma-separated-partition-key,comma-separated-clustering-key
141
+ public static final String TARGET_PRIMARY_KEY_TYPES = "spark.query.target.id.types" ; // 9,1,4,3
143
142
public static final String TARGET_COLUMN_NAMES = "spark.query.target" ;
144
143
public static final String TARGET_CUSTOM_WRITETIME = "spark.target.custom.writeTime" ; // 0
145
144
public static final String TARGET_AUTOCORRECT_MISSING = "spark.target.autocorrect.missing" ; // false
@@ -150,6 +149,7 @@ public enum PropertyType {
150
149
required .add (TARGET_KEYSPACE_TABLE );
151
150
types .put (TARGET_PRIMARY_KEY , PropertyType .STRING_LIST );
152
151
required .add (TARGET_PRIMARY_KEY );
152
+ types .put (TARGET_PRIMARY_KEY_TYPES , PropertyType .MIGRATION_TYPE_LIST );
153
153
types .put (TARGET_COLUMN_NAMES , PropertyType .STRING_LIST );
154
154
required .add (TARGET_COLUMN_NAMES ); // we need this, though it should be defaulted with ORIGIN_COLUMN_NAMES value
155
155
types .put (TARGET_CUSTOM_WRITETIME , PropertyType .NUMBER );
0 commit comments