LideaServiceDAO { public List<LideaServiceBO> scan(LideaServiceReq req) { Scan scan = new Scan(); scan.setCaching(50); scan.addFamily(Const.LIDEA_LOG_FEMILY); scan.setFilter(new PrefixFilter(req.getAppName().getBytes())); return hbaseTemplate.find(Const.LIDEA_SERVICE_TABLE, scan, new LideaServiceResultsExtractor()); }  LideaServiceBO put(LideaServiceBO bo); List<LideaServiceBO> scan(LideaServiceReq req);  }
@Test public void scan() { LideaServiceReq req = new LideaServiceReq(); req.setAppName("cabinet-base-server"); List<LideaServiceBO> list = lideaServiceDAO.scan(req); System.out.println("=========================================================================================="); System.out.println(JSON.toJSONString(list)); }