String projection3 = new String("f1,f2");
BasicTable.Reader reader = new BasicTable.Reader(path, conf);
reader.setProjection(projection3);
List<RangeSplit> splits = reader.rangeSplit(1);
TableScanner scanner = reader.getScanner(splits.get(0), true);
scanner = reader.getScanner(splits.get(0), true);
BytesWritable key = new BytesWritable();
Tuple RowValue = TypesUtils.createTuple(scanner.getSchema());
scanner.getKey(key);
Assert.assertEquals(key, new BytesWritable("k11".getBytes()));
scanner.getValue(RowValue);
Assert.assertEquals(1, RowValue.get(0));
Assert.assertEquals("hello1", RowValue.get(1));
scanner.advance();
scanner.getKey(key);
Assert.assertEquals(key, new BytesWritable("k12".getBytes()));
scanner.getValue(RowValue);
Assert.assertEquals(2, RowValue.get(0));
Assert.assertEquals("hello2", RowValue.get(1));
reader.close();