@@ -83,7 +83,7 @@ public static void testGetImpl(String tableName) throws Exception {
8383 long curTs = System .currentTimeMillis ();
8484 for (int i = 0 ; i < recordCount ; i ++) {
8585 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 ));
8787 hTable .put (put );
8888 }
8989
@@ -119,7 +119,7 @@ public static void testMultiCFGetImpl(Map.Entry<String, List<String>> entry) thr
119119 String family = getColumnFamilyName (tableName );
120120 for (int i = 0 ; i < recordCount ; i ++) {
121121 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 ));
123123 hTable .put (put );
124124 }
125125 }
@@ -204,7 +204,7 @@ public static void testBatchGetImpl(String tableName) throws Exception {
204204 long curTs = System .currentTimeMillis ();
205205 for (int i = 0 ; i < recordCount ; i ++) {
206206 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 ));
208208 hTable .put (put );
209209 }
210210
@@ -245,7 +245,7 @@ public static void testScanImpl(String tableName) throws Exception {
245245 long curTs = System .currentTimeMillis ();
246246 for (int i = 0 ; i < recordCount ; i ++) {
247247 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 ));
249249 hTable .put (put );
250250 }
251251
@@ -354,7 +354,7 @@ public static void testMultiCFScanImpl(Map.Entry<String, List<String>> entry) th
354354 String family = getColumnFamilyName (tableName );
355355 for (int i = 0 ; i < recordCount ; i ++) {
356356 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 ));
358358 hTable .put (put );
359359 }
360360 }
0 commit comments