public static void QueryAll(String tableName) {
    try {
        Table table = connection.getTable(TableName.valueOf(tableName));
        ResultScanner rs = table.getScanner(new Scan());
        for (Result r : rs) {
            System.out.println("获得到rowkey:" + new String(r.getRow()));
            for (Cell cell : r.rawCells()) {
                System.out.println("列:" + new String(CellUtil.cloneFamily(cell))
                        + "====值长度:" + cell.getValueLength()+
                        (cell.getValueLength()<1024?"====值:"+new String(CellUtil.cloneValue(cell)):"")
                );
            }
        }
    } catch (IOException e) {
        e.printStackTrace();
    }
}