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) |
Modifier and Type | Method and Description |
---|---|
PartitionDesc |
clone() |
void |
deriveBaseFileName(org.apache.hadoop.fs.Path path)
Attempt to derive a virtual
base file name property from the
path. |
boolean |
equals(Object o) |
String |
getBaseFileName() |
Deserializer |
getDeserializer(org.apache.hadoop.conf.Configuration conf)
Return a deserializer object corresponding to the partitionDesc.
|
String |
getDeserializerClassName() |
Class<? extends org.apache.hadoop.mapred.InputFormat> |
getInputFileFormatClass() |
String |
getInputFileFormatClassName() |
Class<? extends org.apache.hadoop.mapred.OutputFormat> |
getOutputFileFormatClass() |
String |
getOutputFileFormatClassName() |
LinkedHashMap<String,String> |
getPartSpec() |
Properties |
getProperties() |
Map |
getPropertiesExplain() |
String |
getSerdeClassName() |
TableDesc |
getTableDesc() |
String |
getTableName() |
VectorPartitionDesc |
getVectorPartitionDesc() |
int |
hashCode() |
void |
intern(com.google.common.collect.Interner<TableDesc> interner) |
boolean |
isPartitioned() |
void |
setBaseFileName(String baseFileName) |
void |
setInputFileFormatClass(Class<? extends org.apache.hadoop.mapred.InputFormat> inputFileFormatClass) |
void |
setOutputFileFormatClass(Class<?> outputFileFormatClass) |
void |
setPartSpec(LinkedHashMap<String,String> partSpec) |
void |
setProperties(Properties properties) |
void |
setTableDesc(TableDesc tableDesc) |
void |
setVectorPartitionDesc(VectorPartitionDesc vectorPartitionDesc) |
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(org.apache.hadoop.fs.Path 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 © 2021 The Apache Software Foundation. All rights reserved.