org.apache.kylin.common.util.Dictionary.dump()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(101)

本文整理了Java中org.apache.kylin.common.util.Dictionary.dump()方法的一些代码示例,展示了Dictionary.dump()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Dictionary.dump()方法的具体详情如下:
包路径:org.apache.kylin.common.util.Dictionary
类名称:Dictionary
方法名:dump

Dictionary.dump介绍

暂无

代码示例

代码示例来源:origin: apache/kylin

public static void dump(File f) throws IOException {
    if (f.isDirectory()) {
      File[] files = f.listFiles();
      if (files == null) {
        return;
      }
      for (File c : files)
        dump(c);
      return;
    }

    if (f.getName().endsWith(".dict")) {
      DictionaryInfoSerializer ser = new DictionaryInfoSerializer();
      DictionaryInfo dictInfo = ser.deserialize(new DataInputStream(new FileInputStream(f)));

      System.out.println("============================================================================");
      System.out.println("File: " + f.getAbsolutePath());
      System.out.println(new Date(dictInfo.getLastModified()));
      System.out.println(JsonUtil.writeValueAsIndentString(dictInfo));
      dictInfo.getDictionaryObject().dump(System.out);
      System.out.println();
    }
  }
}

代码示例来源:origin: org.apache.kylin/kylin-cube

public static void dump(File f) throws IOException {
    if (f.isDirectory()) {
      for (File c : f.listFiles())
        dump(c);
      return;
    }

    if (f.getName().endsWith(".dict")) {
      DictionaryInfoSerializer ser = new DictionaryInfoSerializer();
      DictionaryInfo dictInfo = ser.deserialize(new DataInputStream(new FileInputStream(f)));

      System.out.println("============================================================================");
      System.out.println("File: " + f.getAbsolutePath());
      System.out.println(new Date(dictInfo.getLastModified()));
      System.out.println(JsonUtil.writeValueAsIndentString(dictInfo));
      dictInfo.getDictionaryObject().dump(System.out);
      System.out.println();
    }
  }
}

代码示例来源:origin: org.apache.kylin/kylin-core-cube

public static void dump(File f) throws IOException {
    if (f.isDirectory()) {
      File[] files = f.listFiles();
      if (files == null) {
        return;
      }
      for (File c : files)
        dump(c);
      return;
    }

    if (f.getName().endsWith(".dict")) {
      DictionaryInfoSerializer ser = new DictionaryInfoSerializer();
      DictionaryInfo dictInfo = ser.deserialize(new DataInputStream(new FileInputStream(f)));

      System.out.println("============================================================================");
      System.out.println("File: " + f.getAbsolutePath());
      System.out.println(new Date(dictInfo.getLastModified()));
      System.out.println(JsonUtil.writeValueAsIndentString(dictInfo));
      dictInfo.getDictionaryObject().dump(System.out);
      System.out.println();
    }
  }
}

相关文章