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

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

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

  1. @Override
  2. public Class<? extends OutputFormat> getOutputFormatClass() {
  3. return table.getOutputFormatClass();
  4. }

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

  1. public static TableDesc getTableDesc(Table tbl) {
  2. Properties props = tbl.getMetadata();
  3. props.put(serdeConstants.SERIALIZATION_LIB, tbl.getDeserializer().getClass().getName());
  4. return (new TableDesc(tbl.getInputFormatClass(), tbl
  5. .getOutputFormatClass(), props));
  6. }

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

  1. public static TableDesc getTableDesc(Table tbl) {
  2. Properties props = tbl.getMetadata();
  3. props.put(serdeConstants.SERIALIZATION_LIB, tbl.getDeserializer().getClass().getName());
  4. return (new TableDesc(tbl.getInputFormatClass(), tbl
  5. .getOutputFormatClass(), props));
  6. }

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

  1. outputFormattCls = tbl.getOutputFormatClass() == null ? null : tbl.getOutputFormatClass().getName();

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

  1. final public Class<? extends OutputFormat> getOutputFormatClass()
  2. throws HiveException {
  3. if (outputFormatClass == null) {
  4. // sd can be null for views
  5. String clsName = tPartition.getSd() == null ? null : tPartition.getSd().getOutputFormat();
  6. if (clsName == null) {
  7. return outputFormatClass = table.getOutputFormatClass();
  8. }
  9. try {
  10. Class<?> c = Class.forName(clsName, true, Utilities.getSessionSpecifiedClassLoader());
  11. // Replace FileOutputFormat for backward compatibility
  12. outputFormatClass = HiveFileFormatUtils.getOutputFormatSubstitute(c);
  13. } catch (ClassNotFoundException e) {
  14. throw new HiveException("Class not found: " + clsName, e);
  15. }
  16. }
  17. return outputFormatClass;
  18. }

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

  1. outputFormattCls = tbl.getOutputFormatClass().getName();

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

  1. final public Class<? extends OutputFormat> getOutputFormatClass()
  2. throws HiveException {
  3. if (outputFormatClass == null) {
  4. // sd can be null for views
  5. String clsName = tPartition.getSd() == null ? null : tPartition.getSd().getOutputFormat();
  6. if (clsName == null) {
  7. return outputFormatClass = table.getOutputFormatClass();
  8. }
  9. try {
  10. Class<?> c = Class.forName(clsName, true, Utilities.getSessionSpecifiedClassLoader());
  11. // Replace FileOutputFormat for backward compatibility
  12. outputFormatClass = HiveFileFormatUtils.getOutputFormatSubstitute(c);
  13. } catch (ClassNotFoundException e) {
  14. throw new HiveException("Class not found: " + clsName, e);
  15. }
  16. }
  17. return outputFormatClass;
  18. }

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

  1. outputFormattCls = tbl.getOutputFormatClass() == null ? null : tbl.getOutputFormatClass().getName();

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

  1. outputFormattCls = tbl.getOutputFormatClass().getName();

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

  1. throw new HiveException("must specify an InputFormat class");
  2. if (null == getOutputFormatClass()) {
  3. throw new HiveException("must specify an OutputFormat class");

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

  1. tbl.getInputFormatClass().getName());
  2. tbl.getTTable().getSd().setOutputFormat(
  3. tbl.getOutputFormatClass().getName());
  4. } else {
  5. tbl=oldtbl;
  6. tbl.getInputFormatClass().getName());
  7. tbl.getTTable().getSd().setOutputFormat(
  8. tbl.getOutputFormatClass().getName());
  9. if (crtTbl.getDefaultSerName() == null) {
  10. LOG.info("Default to LazySimpleSerDe for like table {}", targetTableName);

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

  1. tbl.getInputFormatClass().getName());
  2. tbl.getTTable().getSd().setOutputFormat(
  3. tbl.getOutputFormatClass().getName());
  4. } else {
  5. tbl=oldtbl;
  6. tbl.getInputFormatClass().getName());
  7. tbl.getTTable().getSd().setOutputFormat(
  8. tbl.getOutputFormatClass().getName());
  9. if (crtTbl.getDefaultSerName() == null) {
  10. LOG.info("Default to LazySimpleSerDe for like table " + crtTbl.getTableName());

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

  1. throw new HiveException("must specify an InputFormat class");
  2. if (null == getOutputFormatClass()) {
  3. throw new HiveException("must specify an OutputFormat class");

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

  1. tbl.getTTable().getSd().setOutputFormat(tbl.getOutputFormatClass().getName());

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

  1. String existingofc = table.getOutputFormatClass().getName();
  2. String importedofc = tableDesc.getOutputFormat();

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

  1. tbl.getSd().setOutputFormat(tbl.getOutputFormatClass().getName());

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

  1. Class<?> outputFormatClass = ts.tableHandle.getOutputFormatClass();
  2. if (!ts.tableHandle.isNonNative() &&
  3. !HiveOutputFormat.class.isAssignableFrom(outputFormatClass)) {

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

  1. tbl.getTTable().getSd().setOutputFormat(tbl.getOutputFormatClass().getName());

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

  1. String existingofc = table.getOutputFormatClass().getName();
  2. String importedofc = tableDesc.getOutputFormat();

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

  1. Class<?> outputFormatClass = ts.tableHandle.getOutputFormatClass();
  2. if (!ts.tableHandle.isNonNative() &&
  3. !HiveOutputFormat.class.isAssignableFrom(outputFormatClass)) {

相关文章

Table类方法