@@ -83,7 +83,7 @@ public static void testGetImpl(String tableName) throws Exception {
83
83
long curTs = System .currentTimeMillis ();
84
84
for (int i = 0 ; i < recordCount ; i ++) {
85
85
Put put = new Put (toBytes (key + i ));
86
- put .add (family .getBytes (), (column + i ).getBytes (), curTs , toBytes (value + i ));
86
+ put .addColumn (family .getBytes (), (column + i ).getBytes (), curTs , toBytes (value + i ));
87
87
hTable .put (put );
88
88
}
89
89
@@ -119,7 +119,7 @@ public static void testMultiCFGetImpl(Map.Entry<String, List<String>> entry) thr
119
119
String family = getColumnFamilyName (tableName );
120
120
for (int i = 0 ; i < recordCount ; i ++) {
121
121
Put put = new Put (toBytes (key + i ));
122
- put .add (family .getBytes (), (column + i ).getBytes (), curTs , toBytes (value + i ));
122
+ put .addColumn (family .getBytes (), (column + i ).getBytes (), curTs , toBytes (value + i ));
123
123
hTable .put (put );
124
124
}
125
125
}
@@ -204,7 +204,7 @@ public static void testBatchGetImpl(String tableName) throws Exception {
204
204
long curTs = System .currentTimeMillis ();
205
205
for (int i = 0 ; i < recordCount ; i ++) {
206
206
Put put = new Put (toBytes (key + i ));
207
- put .add (family .getBytes (), (column + i ).getBytes (), curTs , toBytes (value ));
207
+ put .addColumn (family .getBytes (), (column + i ).getBytes (), curTs , toBytes (value ));
208
208
hTable .put (put );
209
209
}
210
210
@@ -245,7 +245,7 @@ public static void testScanImpl(String tableName) throws Exception {
245
245
long curTs = System .currentTimeMillis ();
246
246
for (int i = 0 ; i < recordCount ; i ++) {
247
247
Put put = new Put (toBytes (key + i ));
248
- put .add (family .getBytes (), (column ).getBytes (), curTs , toBytes (value + i ));
248
+ put .addColumn (family .getBytes (), (column ).getBytes (), curTs , toBytes (value + i ));
249
249
hTable .put (put );
250
250
}
251
251
@@ -354,7 +354,7 @@ public static void testMultiCFScanImpl(Map.Entry<String, List<String>> entry) th
354
354
String family = getColumnFamilyName (tableName );
355
355
for (int i = 0 ; i < recordCount ; i ++) {
356
356
Put put = new Put (toBytes (key + i ));
357
- put .add (family .getBytes (), (column ).getBytes (), curTs , toBytes (value ));
357
+ put .addColumn (family .getBytes (), (column ).getBytes (), curTs , toBytes (value ));
358
358
hTable .put (put );
359
359
}
360
360
}
0 commit comments