public void setOutputFileFormatClass(Class<?> outputFileFormatClass) { this.outputFileFormatClass = HiveFileFormatUtils .getOutputFormatSubstitute(outputFileFormatClass); }
public void setOutputFileFormatClass(Class<?> outputFileFormatClass) { this.outputFileFormatClass = HiveFileFormatUtils .getOutputFormatSubstitute(outputFileFormatClass); }
public void setOutputFileFormatClass(final Class<?> outputFileFormatClass) { Class<? extends OutputFormat> outputClass = outputFileFormatClass == null ? null : HiveFileFormatUtils.getOutputFormatSubstitute(outputFileFormatClass); if (outputClass != null) { this.outputFileFormatClass = (Class<? extends HiveOutputFormat>) CLASS_INTERNER.intern(outputClass); } else { this.outputFileFormatClass = outputClass; } }
/** * @param inputFormatClass * @param outputFormatClass * @param properties must contain serde class name associate with this table. */ public TableDesc( final Class<? extends InputFormat> inputFormatClass, final Class<?> outputFormatClass, final Properties properties) { this.inputFileFormatClass = inputFormatClass; outputFileFormatClass = HiveFileFormatUtils .getOutputFormatSubstitute(outputFormatClass); setProperties(properties); }
public void setOutputFileFormatClass(final Class<?> outputFileFormatClass) { Class<? extends OutputFormat> outputClass = outputFileFormatClass == null ? null : HiveFileFormatUtils.getOutputFormatSubstitute(outputFileFormatClass); if (outputClass != null) { this.outputFileFormatClass = (Class<? extends HiveOutputFormat>) CLASS_INTERNER.intern(outputClass); } else { this.outputFileFormatClass = outputClass; } }
/** * @param inputFormatClass * @param outputFormatClass * @param properties must contain serde class name associate with this table. */ public TableDesc( final Class<? extends InputFormat> inputFormatClass, final Class<?> outputFormatClass, final Properties properties) { this.inputFileFormatClass = inputFormatClass; outputFileFormatClass = HiveFileFormatUtils .getOutputFormatSubstitute(outputFormatClass); setProperties(properties); }
/** * @param outputFormatClass */ public void setOutputFormatClass(Class<? extends HiveOutputFormat> outputFormatClass) { this.outputFormatClass = outputFormatClass; tPartition.getSd().setOutputFormat(HiveFileFormatUtils .getOutputFormatSubstitute(outputFormatClass).getName()); }
/** * @param outputFormatClass */ public void setOutputFormatClass(Class<? extends HiveOutputFormat> outputFormatClass) { this.outputFormatClass = outputFormatClass; tPartition.getSd().setOutputFormat(HiveFileFormatUtils .getOutputFormatSubstitute(outputFormatClass).getName()); }
public void setOutputFormatClass(String name) throws HiveException { if (name == null) { outputFormatClass = null; tTable.getSd().setOutputFormat(null); return; } try { Class<?> origin = Class.forName(name, true, Utilities.getSessionSpecifiedClassLoader()); setOutputFormatClass(HiveFileFormatUtils.getOutputFormatSubstitute(origin)); } catch (ClassNotFoundException e) { throw new HiveException("Class not found: " + name, e); } }
public void setOutputFormatClass(String name) throws HiveException { if (name == null) { outputFormatClass = null; tTable.getSd().setOutputFormat(null); return; } try { Class<?> origin = Class.forName(name, true, Utilities.getSessionSpecifiedClassLoader()); setOutputFormatClass(HiveFileFormatUtils.getOutputFormatSubstitute(origin)); } catch (ClassNotFoundException e) { throw new HiveException("Class not found: " + name, e); } }
final public Class<? extends OutputFormat> getOutputFormatClass() { if (outputFormatClass == null) { try { String className = tTable.getSd().getOutputFormat(); Class<?> c; if (className == null) { if (getStorageHandler() == null) { return null; } c = getStorageHandler().getOutputFormatClass(); } else { c = Class.forName(className, true, Utilities.getSessionSpecifiedClassLoader()); } // Replace FileOutputFormat for backward compatibility outputFormatClass = HiveFileFormatUtils.getOutputFormatSubstitute(c); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } } return outputFormatClass; }
final public Class<? extends OutputFormat> getOutputFormatClass() { if (outputFormatClass == null) { try { String className = tTable.getSd().getOutputFormat(); Class<?> c; if (className == null) { if (getStorageHandler() == null) { return null; } c = getStorageHandler().getOutputFormatClass(); } else { c = Class.forName(className, true, Utilities.getSessionSpecifiedClassLoader()); } // Replace FileOutputFormat for backward compatibility outputFormatClass = HiveFileFormatUtils.getOutputFormatSubstitute(c); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } } return outputFormatClass; }
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; }
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; }
Utilities.getSessionSpecifiedClassLoader()); Class<? extends OutputFormat> replaced = HiveFileFormatUtils .getOutputFormatSubstitute(origin); if (!HiveOutputFormat.class.isAssignableFrom(replaced)) { throw new SemanticException(ErrorMsg.INVALID_OUTPUT_FORMAT_TYPE
Utilities.getSessionSpecifiedClassLoader()); Class<? extends OutputFormat> replaced = HiveFileFormatUtils .getOutputFormatSubstitute(origin); if (!HiveOutputFormat.class.isAssignableFrom(replaced)) { throw new SemanticException(ErrorMsg.INVALID_OUTPUT_FORMAT_TYPE
Class<?> origin = Class.forName(importedofc, true, Utilities.getSessionSpecifiedClassLoader()); Class<? extends OutputFormat> replaced = HiveFileFormatUtils .getOutputFormatSubstitute(origin); if (replaced == null) { throw new SemanticException(ErrorMsg.INVALID_OUTPUT_FORMAT_TYPE.getMsg());
Class<?> origin = Class.forName(importedofc, true, Utilities.getSessionSpecifiedClassLoader()); Class<? extends OutputFormat> replaced = HiveFileFormatUtils .getOutputFormatSubstitute(origin); if (replaced == null) { throw new SemanticException(ErrorMsg.INVALID_OUTPUT_FORMAT_TYPE
public void setOutputFileFormatClass(final Class<?> outputFileFormatClass) { Class<? extends OutputFormat> outputClass = outputFileFormatClass == null ? null : HiveFileFormatUtils.getOutputFormatSubstitute(outputFileFormatClass); if (outputClass != null) { this.outputFileFormatClass = (Class<? extends HiveOutputFormat>) CLASS_INTERNER.intern(outputClass); } else { this.outputFileFormatClass = outputClass; } }
/** * @param class1 */ public void setOutputFormatClass(Class<? extends HiveOutputFormat> outputFormatClass) { this.outputFormatClass = outputFormatClass; tPartition.getSd().setOutputFormat(HiveFileFormatUtils .getOutputFormatSubstitute(outputFormatClass).toString()); }