org.apache.hadoop.hive.ql.metadata.Table.getOutputFormatClass()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(90)

本文整理了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

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)) {

相关文章

微信公众号

最新文章

更多

Table类方法