test_class.declarator: lideaLogDAO
test_class.modifier: @Resource
      private
test_class.original_string: @Resource
      private LideaLogDAO lideaLogDAO;
test_class.type: LideaLogDAO
test_class.var_name: lideaLogDAO
test_class.file: mmc-lidea-web/src/test/java/com/mmc/flink/lidea/dao/LideaLogDAOTest.java
test_class.identifier: LideaLogDAOTest
test_case.body: @Test
      public void testGet() {
  
          LideaLogReq req = new LideaLogReq();
  
          req.setAppName("cabinet-base-server");
          req.setServiceName("com.fcbox.edms.terminal.api.CabinetServiceFacade");
          req.setMethodName("getCabinetInfo");
  
          req.setFrom(TimeUtil.stringToLong("2019-08-05 14:26:39"));
          req.setTo(TimeUtil.stringToLong("2019-08-05 14:26:39"));
  
          LideaLogResp resp = lideaLogDAO.get(req);
          System.out.println("==========================================================================================");
          System.out.println(JSON.toJSONString(resp));
  
      }
test_case.class_method_signature: LideaLogDAOTest.testGet()
test_case.full_signature: @Test public void testGet()
test_case.identifier: testGet
test_case.invocations: setAppName setServiceName setMethodName setFrom stringToLong setTo stringToLong get println println toJSONString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGet()
focal_class.declarator: hbaseTemplate
focal_class.modifier: @Resource
      private
focal_class.original_string: @Resource
      private HbaseTemplate hbaseTemplate;
focal_class.type: HbaseTemplate
focal_class.var_name: hbaseTemplate
focal_class.file: mmc-lidea-web/src/main/java/com/mmc/flink/lidea/dao/LideaLogDAO.java
focal_class.identifier: LideaLogDAO
focal_class.class_method_signature: LideaLogDAO.put(LideaLogBO bo)
focal_class.full_signature: public void put(LideaLogBO bo)
focal_class.identifier: put
focal_class.modifiers: public
focal_class.parameters: (LideaLogBO bo)
focal_class.return: void
focal_class.signature: void put(LideaLogBO bo)
focal_class.class_method_signature: LideaLogDAO.scan(LideaLogReq req)
focal_class.full_signature: public LideaLogResp scan(LideaLogReq req)
focal_class.identifier: scan
focal_class.modifiers: public
focal_class.parameters: (LideaLogReq req)
focal_class.return: LideaLogResp
focal_class.signature: LideaLogResp scan(LideaLogReq req)
focal_class.class_method_signature: LideaLogDAO.createScan(LideaLogReq bo)
focal_class.full_signature: private Scan createScan(LideaLogReq bo)
focal_class.identifier: createScan
focal_class.modifiers: private
focal_class.parameters: (LideaLogReq bo)
focal_class.return: Scan
focal_class.signature: Scan createScan(LideaLogReq bo)
focal_class.class_method_signature: LideaLogDAO.get(LideaLogReq req)
focal_class.full_signature: public LideaLogResp get(LideaLogReq req)
focal_class.identifier: get
focal_class.modifiers: public
focal_class.parameters: (LideaLogReq req)
focal_class.return: LideaLogResp
focal_class.signature: LideaLogResp get(LideaLogReq req)
focal_method.body: public LideaLogResp get(LideaLogReq req) {
  
          log.info("req : {}", JSON.toJSONString(req));
  
          LideaLogResp resp = new LideaLogResp();
          resp.setAppName(req.getAppName());
          resp.setServiceName(req.getServiceName());
          resp.setMethodName(req.getMethodName());
  
          List<LideaLogBO> data = hbaseTemplate.execute(Const.LIDEA_LOG_TABLE, (table) -> {
  
              String base = StringUtil.format("{}{}{}", req.getAppName(), req.getServiceName(), req.getMethodName());
  
              byte[] rowKey = LideaLogEntry.makeRowKey(MD5Util.encrypt(base), req.getFrom());
              Get get = new Get(rowKey);
  
              Result result = table.get(get);
  
              LideaLogBO bo = LideaLogResultsExtractor.map(result);
  
              return Collections.singletonList(bo);
          });
  
          resp.setData(data);
  
          return resp;
      }
focal_method.class_method_signature: LideaLogDAO.get(LideaLogReq req)
focal_method.full_signature: public LideaLogResp get(LideaLogReq req)
focal_method.identifier: get
focal_method.invocations: info toJSONString setAppName getAppName setServiceName getServiceName setMethodName getMethodName execute format getAppName getServiceName getMethodName makeRowKey encrypt getFrom get map singletonList setData
focal_method.modifiers: public
focal_method.parameters: (LideaLogReq req)
focal_method.return: LideaLogResp
focal_method.signature: LideaLogResp get(LideaLogReq req)