public class PartitionDesc extends Object implements Serializable, Cloneable
Constructor and Description |
---|
PartitionDesc() |
PartitionDesc(Partition part) |
PartitionDesc(Partition part,
TableDesc tblDesc) |
PartitionDesc(TableDesc table,
LinkedHashMap<String,String> partSpec) |
Modifier and Type | Method and Description |
---|---|
PartitionDesc |
clone() |
void |
deriveBaseFileName(String path)
Attempt to derive a virtual
base file name property from the
path. |
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() |
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) |
public PartitionDesc()
public PartitionDesc(TableDesc table, LinkedHashMap<String,String> partSpec)
public PartitionDesc(Partition part) throws HiveException
HiveException
public PartitionDesc(Partition part, TableDesc tblDesc) throws HiveException
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)
Copyright © 2017 The Apache Software Foundation. All rights reserved.