本文整理了Java中org.apache.hadoop.hive.ql.metadata.Table.getOutputFormatClass()
方法的一些代码示例,展示了Table.getOutputFormatClass()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.getOutputFormatClass()
方法的具体详情如下:
包路径:org.apache.hadoop.hive.ql.metadata.Table
类名称:Table
方法名:getOutputFormatClass
暂无
代码示例来源:origin: apache/hive
@Override
public Class<? extends OutputFormat> getOutputFormatClass() {
return table.getOutputFormatClass();
}
代码示例来源:origin: apache/hive
public static TableDesc getTableDesc(Table tbl) {
Properties props = tbl.getMetadata();
props.put(serdeConstants.SERIALIZATION_LIB, tbl.getDeserializer().getClass().getName());
return (new TableDesc(tbl.getInputFormatClass(), tbl
.getOutputFormatClass(), props));
}
代码示例来源:origin: apache/drill
public static TableDesc getTableDesc(Table tbl) {
Properties props = tbl.getMetadata();
props.put(serdeConstants.SERIALIZATION_LIB, tbl.getDeserializer().getClass().getName());
return (new TableDesc(tbl.getInputFormatClass(), tbl
.getOutputFormatClass(), props));
}
代码示例来源:origin: apache/hive
outputFormattCls = tbl.getOutputFormatClass() == null ? null : tbl.getOutputFormatClass().getName();
代码示例来源:origin: apache/hive
final public Class<? extends OutputFormat> getOutputFormatClass()
throws HiveException {
if (outputFormatClass == null) {
// sd can be null for views
String clsName = tPartition.getSd() == null ? null : tPartition.getSd().getOutputFormat();
if (clsName == null) {
return outputFormatClass = table.getOutputFormatClass();
}
try {
Class<?> c = Class.forName(clsName, true, Utilities.getSessionSpecifiedClassLoader());
// Replace FileOutputFormat for backward compatibility
outputFormatClass = HiveFileFormatUtils.getOutputFormatSubstitute(c);
} catch (ClassNotFoundException e) {
throw new HiveException("Class not found: " + clsName, e);
}
}
return outputFormatClass;
}
代码示例来源:origin: apache/drill
outputFormattCls = tbl.getOutputFormatClass().getName();
代码示例来源:origin: apache/drill
final public Class<? extends OutputFormat> getOutputFormatClass()
throws HiveException {
if (outputFormatClass == null) {
// sd can be null for views
String clsName = tPartition.getSd() == null ? null : tPartition.getSd().getOutputFormat();
if (clsName == null) {
return outputFormatClass = table.getOutputFormatClass();
}
try {
Class<?> c = Class.forName(clsName, true, Utilities.getSessionSpecifiedClassLoader());
// Replace FileOutputFormat for backward compatibility
outputFormatClass = HiveFileFormatUtils.getOutputFormatSubstitute(c);
} catch (ClassNotFoundException e) {
throw new HiveException("Class not found: " + clsName, e);
}
}
return outputFormatClass;
}
代码示例来源:origin: apache/hive
outputFormattCls = tbl.getOutputFormatClass() == null ? null : tbl.getOutputFormatClass().getName();
代码示例来源:origin: apache/drill
outputFormattCls = tbl.getOutputFormatClass().getName();
代码示例来源:origin: apache/hive
throw new HiveException("must specify an InputFormat class");
if (null == getOutputFormatClass()) {
throw new HiveException("must specify an OutputFormat class");
代码示例来源:origin: apache/hive
tbl.getInputFormatClass().getName());
tbl.getTTable().getSd().setOutputFormat(
tbl.getOutputFormatClass().getName());
} else {
tbl=oldtbl;
tbl.getInputFormatClass().getName());
tbl.getTTable().getSd().setOutputFormat(
tbl.getOutputFormatClass().getName());
if (crtTbl.getDefaultSerName() == null) {
LOG.info("Default to LazySimpleSerDe for like table {}", targetTableName);
代码示例来源:origin: apache/drill
tbl.getInputFormatClass().getName());
tbl.getTTable().getSd().setOutputFormat(
tbl.getOutputFormatClass().getName());
} else {
tbl=oldtbl;
tbl.getInputFormatClass().getName());
tbl.getTTable().getSd().setOutputFormat(
tbl.getOutputFormatClass().getName());
if (crtTbl.getDefaultSerName() == null) {
LOG.info("Default to LazySimpleSerDe for like table " + crtTbl.getTableName());
代码示例来源:origin: apache/drill
throw new HiveException("must specify an InputFormat class");
if (null == getOutputFormatClass()) {
throw new HiveException("must specify an OutputFormat class");
代码示例来源:origin: apache/drill
tbl.getTTable().getSd().setOutputFormat(tbl.getOutputFormatClass().getName());
代码示例来源:origin: apache/hive
String existingofc = table.getOutputFormatClass().getName();
String importedofc = tableDesc.getOutputFormat();
代码示例来源:origin: apache/hive
tbl.getSd().setOutputFormat(tbl.getOutputFormatClass().getName());
代码示例来源:origin: apache/hive
Class<?> outputFormatClass = ts.tableHandle.getOutputFormatClass();
if (!ts.tableHandle.isNonNative() &&
!HiveOutputFormat.class.isAssignableFrom(outputFormatClass)) {
代码示例来源:origin: apache/hive
tbl.getTTable().getSd().setOutputFormat(tbl.getOutputFormatClass().getName());
代码示例来源:origin: apache/drill
String existingofc = table.getOutputFormatClass().getName();
String importedofc = tableDesc.getOutputFormat();
代码示例来源:origin: apache/drill
Class<?> outputFormatClass = ts.tableHandle.getOutputFormatClass();
if (!ts.tableHandle.isNonNative() &&
!HiveOutputFormat.class.isAssignableFrom(outputFormatClass)) {
内容来源于网络,如有侵权,请联系作者删除!