本文整理了Java中org.apache.kylin.common.util.Dictionary.dump()
方法的一些代码示例,展示了Dictionary.dump()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Dictionary.dump()
方法的具体详情如下:
包路径:org.apache.kylin.common.util.Dictionary
类名称: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();
}
}
}
内容来源于网络,如有侵权,请联系作者删除!