test_class.declarator: lideaLogErrorDAO
test_class.modifier: @Resource
      private
test_class.original_string: @Resource
      private
      LideaLogErrorDAO lideaLogErrorDAO;
test_class.type: LideaLogErrorDAO
test_class.var_name: lideaLogErrorDAO
test_class.file: mmc-lidea-web/src/test/java/com/mmc/flink/lidea/dao/LideaLogErrorDAOTest.java
test_class.identifier: LideaLogErrorDAOTest
test_case.body: @Test
      public void list() {
  
          List<String> traceIds = new ArrayList<>();
          traceIds.add("a3f2f2660d6c4a869626c878be92961d");
  
          List<LideaLogErrorDetailBO> ret = lideaLogErrorDAO.list(traceIds);
  
  
          System.out.println("==========================================================================================");
          System.out.println(JSON.toJSONString(ret));
  
      }
test_case.class_method_signature: LideaLogErrorDAOTest.list()
test_case.full_signature: @Test public void list()
test_case.identifier: list
test_case.invocations: add list println println toJSONString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void list()
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/LideaLogErrorDAO.java
focal_class.identifier: LideaLogErrorDAO
focal_class.class_method_signature: LideaLogErrorDAO.list(List<String> traceIds)
focal_class.full_signature: public List<LideaLogErrorDetailBO> list(List<String> traceIds)
focal_class.identifier: list
focal_class.modifiers: public
focal_class.parameters: (List<String> traceIds)
focal_class.return: List<LideaLogErrorDetailBO>
focal_class.signature: List<LideaLogErrorDetailBO> list(List<String> traceIds)
focal_method.body: public List<LideaLogErrorDetailBO> list(List<String> traceIds) {
  
  
          return hbaseTemplate.execute(Const.LIDEA_LOG_DEATIL_TABLE, table -> {
  
              List<LideaLogErrorDetailBO> bos = new ArrayList<>();
  
              if (traceIds.size() > 1) {
  
                  List<Get> list = new ArrayList<>();
  
                  for (String traceId : traceIds) {
  
                      Get get = new Get(BytesUtils.toBytes(traceId));
  
                      list.add(get);
                  }
  
                  Result[] rs = table.get(list);
  
                  for (Result r : rs) {
                      LideaLogErrorDetailBO bo = LideaLogResultsExtractor.mapErrorDetail(r);
                      bos.add(bo);
                  }
                  return bos;
  
              } else {
  
                  Get get = new Get(BytesUtils.toBytes(traceIds.get(0)));
                  Result r = table.get(get);
                  if (r.isEmpty()) {
                      return null;
                  }
                  LideaLogErrorDetailBO bo = LideaLogResultsExtractor.mapErrorDetail(r);
  
                  return Collections.singletonList(bo);
              }
          });
  
      }
focal_method.class_method_signature: LideaLogErrorDAO.list(List<String> traceIds)
focal_method.full_signature: public List<LideaLogErrorDetailBO> list(List<String> traceIds)
focal_method.identifier: list
focal_method.invocations: execute size toBytes add get mapErrorDetail add toBytes get get isEmpty mapErrorDetail singletonList
focal_method.modifiers: public
focal_method.parameters: (List<String> traceIds)
focal_method.return: List<LideaLogErrorDetailBO>
focal_method.signature: List<LideaLogErrorDetailBO> list(List<String> traceIds)