test_class.declarator: fileLoader
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private IndexFileLoader fileLoader;
test_class.type: IndexFileLoader
test_class.var_name: fileLoader
test_class.declarator: unitIndex
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private AdUnitIndex unitIndex;
test_class.type: AdUnitIndex
test_class.var_name: unitIndex
test_class.file: ad-service/ad-search/src/test/java/top/ezttf/ad/index/IndexFileLoaderTest.java
test_class.identifier: IndexFileLoaderTest
test_case.body: @Test
      public void testInit() {
          fileLoader.init();
      }
test_case.class_method_signature: IndexFileLoaderTest.testInit()
test_case.full_signature: @Test public void testInit()
test_case.identifier: testInit
test_case.invocations: init
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testInit()
focal_class.file: ad-service/ad-search/src/main/java/top/ezttf/ad/index/IndexFileLoader.java
focal_class.identifier: IndexFileLoader
focal_class.class_method_signature: IndexFileLoader.init()
focal_class.full_signature: @PostConstruct public void init()
focal_class.identifier: init
focal_class.modifiers: @PostConstruct public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: IndexFileLoader.loadDumpData(String fileName)
focal_class.full_signature: private List<String> loadDumpData(String fileName)
focal_class.identifier: loadDumpData
focal_class.modifiers: private
focal_class.parameters: (String fileName)
focal_class.return: List<String>
focal_class.signature: List<String> loadDumpData(String fileName)
focal_method.body: @PostConstruct
      public void init() {
          // 第二层级的 推广计划 索引加载
          List<String> adPlanStrings = loadDumpData(
                  String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_PLAN)
          );
          adPlanStrings.forEach(adPlanString -> AdLevelDataHandler.handleLevel2(
                  JSON.parseObject(adPlanString, AdPlanTable.class),
                  OpType.ADD
          ));
  
          // 第二层级的 创意 索引加载
          List<String> adCreativeStrings = loadDumpData(
              String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_CREATIVE)
          );
          adCreativeStrings.forEach(adCreativeString -> AdLevelDataHandler.handleLevel2(
                  JSON.parseObject(adCreativeString, AdCreativeTable.class),
                  OpType.ADD
          ));
  
          // 第三层级的 推广单元 索引加载
          List<String> adUnitStrings = loadDumpData(
                  String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT)
          );
          adUnitStrings.forEach(adUnitString -> AdLevelDataHandler.handleLevel3(
                  JSON.parseObject(adUnitString, AdUnitTable.class),
                  OpType.ADD
          ));
  
          // 第三层级的 创意与推广单元关联 索引加载
          List<String> adCreativeUnitStrings = loadDumpData(
                  String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_CREATIVE_UNIT)
          );
          adCreativeUnitStrings.forEach(adCreativeUnitString -> AdLevelDataHandler.handleLevel3(
                  JSON.parseObject(adCreativeUnitString, AdCreativeUnitTable.class),
                  OpType.ADD
          ));
  
          // 第四层级  推广单元地域限制 索引加载
          List<String> adUnitDistrictStrings = loadDumpData(
                  String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT_DISTRICT)
          );
          adUnitDistrictStrings.forEach(adUnitDistrictString -> AdLevelDataHandler.handleLevel4(
                  JSON.parseObject(adUnitDistrictString, AdUnitDistrictTable.class),
                  OpType.ADD
          ));
  
          // 第四层级 推广单元兴趣限制 索引加载
          List<String> adUnitItStrings = loadDumpData(
                  String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT_IT)
          );
          adUnitItStrings.forEach(adUnitItString -> AdLevelDataHandler.handleLevel4(
                  JSON.parseObject(adUnitItString, AdUnitItTable.class),
                  OpType.ADD
          ));
  
          // 第四层级 推广单元关键词限制 索引加载
          List<String> adUnitKeywordStrings = loadDumpData(
                  String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT_KEYWORD)
          );
          adUnitKeywordStrings.forEach(adUnitKeywordString -> AdLevelDataHandler.handleLevel4(
                  JSON.parseObject(adUnitKeywordString, AdUnitKeywordTable.class),
                  OpType.ADD
          ));
      }
focal_method.class_method_signature: IndexFileLoader.init()
focal_method.full_signature: @PostConstruct public void init()
focal_method.identifier: init
focal_method.invocations: loadDumpData format forEach handleLevel2 parseObject loadDumpData format forEach handleLevel2 parseObject loadDumpData format forEach handleLevel3 parseObject loadDumpData format forEach handleLevel3 parseObject loadDumpData format forEach handleLevel4 parseObject loadDumpData format forEach handleLevel4 parseObject loadDumpData format forEach handleLevel4 parseObject
focal_method.modifiers: @PostConstruct public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void init()