最后打印结果的代码
for (Result result : scanner) {
if (result.raw().length > 0) {
for (KeyValue kv : result.raw()) {
System.out.println(new String(kv.getQualifier()) + "\t"
+ new String(kv.getValue()));
}
} else {
System.out.println("scan all rec erro");
}
}