public class PartitionDesc extends Object implements Serializable, Cloneable
Constructor and Description |
---|
PartitionDesc() |
PartitionDesc(Partition part) |
PartitionDesc(Partition part,
TableDesc tblDesc,
boolean usePartSchemaProperties) |
PartitionDesc(TableDesc table,
LinkedHashMap<String,String> partSpec) |
public PartitionDesc()
public PartitionDesc(TableDesc table, LinkedHashMap<String,String> partSpec)
public PartitionDesc(Partition part) throws HiveException
HiveException
public PartitionDesc(Partition part, TableDesc tblDesc, boolean usePartSchemaProperties) throws HiveException
part
- PartitiontblDesc
- Table DescriptorusePartSchemaProperties
- Use Partition Schema Properties to set the
partition descriptor properties. This is usually set to true by the caller
if the table is partitioned, i.e. if the table has partition columns.HiveException
public void setBaseFileName(String baseFileName)
public TableDesc getTableDesc()
public void setTableDesc(TableDesc tableDesc)
public LinkedHashMap<String,String> getPartSpec()
public void setPartSpec(LinkedHashMap<String,String> partSpec)
public Class<? extends org.apache.hadoop.mapred.InputFormat> getInputFileFormatClass()
public String getDeserializerClassName()
public Deserializer getDeserializer(org.apache.hadoop.conf.Configuration conf) throws Exception
Exception
public void setInputFileFormatClass(Class<? extends org.apache.hadoop.mapred.InputFormat> inputFileFormatClass)
public Class<? extends org.apache.hadoop.mapred.OutputFormat> getOutputFileFormatClass()
public void setOutputFileFormatClass(Class<?> outputFileFormatClass)
public Properties getProperties()
public Map getPropertiesExplain()
public void setProperties(Properties properties)
public String getSerdeClassName()
public String getTableName()
public String getInputFileFormatClassName()
public String getOutputFileFormatClassName()
public String getBaseFileName()
public boolean isPartitioned()
public PartitionDesc clone()
public void deriveBaseFileName(String path)
base file name
property from the
path. If path format is unrecognized, just use the full path.path
- URI to the partition filepublic void intern(com.google.common.collect.Interner<TableDesc> interner)
public void setVectorPartitionDesc(VectorPartitionDesc vectorPartitionDesc)
public VectorPartitionDesc getVectorPartitionDesc()
Copyright © 2016 The Apache Software Foundation. All rights reserved.