boolean s1dropped, boolean s2dropped) throws IOException, ParseException {
System.out.println(myuser + "is reading....");
BasicTable.Reader reader = new BasicTable.Reader(path, conf);
reader.setProjection(projection);
List<RangeSplit> splits = reader.rangeSplit(1);
TableScanner 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);
if (s1dropped == true) {
Assert.assertEquals(null, RowValue.get(0));
} else {
Assert.assertEquals("column1_1", RowValue.get(0));
}
if (s2dropped == true) {
Assert.assertEquals(null, RowValue.get(1));
} else {
Assert.assertEquals("column2_1", RowValue.get(1));
}
scanner.advance();
scanner.getKey(key);
// Assert.assertEquals(key, new BytesWritable("k12".getBytes()));
scanner.getValue(RowValue);
if (s1dropped == true) {
Assert.assertEquals(null, RowValue.get(0));
} else {
Assert.assertEquals("column1_2", RowValue.get(0));
}