org.apache.hadoop.hive.ql.plan
Class PartitionDesc
java.lang.Object
org.apache.hadoop.hive.ql.plan.PartitionDesc
- All Implemented Interfaces:
- Serializable, Cloneable
public class PartitionDesc
- extends Object
- implements Serializable, Cloneable
PartitionDesc.
- See Also:
- Serialized Form
PartitionDesc
public PartitionDesc()
PartitionDesc
public PartitionDesc(TableDesc table,
LinkedHashMap<String,String> partSpec)
PartitionDesc
public PartitionDesc(Partition part)
throws HiveException
- Throws:
HiveException
PartitionDesc
public PartitionDesc(Partition part,
TableDesc tblDesc)
throws HiveException
- Throws:
HiveException
setBaseFileName
public void setBaseFileName(String baseFileName)
getTableDesc
public TableDesc getTableDesc()
setTableDesc
public void setTableDesc(TableDesc tableDesc)
getPartSpec
public LinkedHashMap<String,String> getPartSpec()
setPartSpec
public void setPartSpec(LinkedHashMap<String,String> partSpec)
getInputFileFormatClass
public Class<? extends org.apache.hadoop.mapred.InputFormat> getInputFileFormatClass()
getDeserializer
public Deserializer getDeserializer(org.apache.hadoop.conf.Configuration conf)
throws Exception
- Return a deserializer object corresponding to the partitionDesc.
- Throws:
Exception
setInputFileFormatClass
public void setInputFileFormatClass(Class<? extends org.apache.hadoop.mapred.InputFormat> inputFileFormatClass)
getOutputFileFormatClass
public Class<? extends HiveOutputFormat> getOutputFileFormatClass()
setOutputFileFormatClass
public void setOutputFileFormatClass(Class<?> outputFileFormatClass)
getProperties
public Properties getProperties()
getOverlayedProperties
public Properties getOverlayedProperties()
setProperties
public void setProperties(Properties properties)
getSerdeClassName
public String getSerdeClassName()
- Returns:
- the serdeClassName
getTableName
public String getTableName()
getInputFileFormatClassName
public String getInputFileFormatClassName()
getOutputFileFormatClassName
public String getOutputFileFormatClassName()
getBaseFileName
public String getBaseFileName()
isPartitioned
public boolean isPartitioned()
clone
public PartitionDesc clone()
- Overrides:
clone
in class Object
deriveBaseFileName
public void deriveBaseFileName(String path)
- Attempt to derive a virtual
base file name
property from the
path. If path format is unrecognized, just use the full path.
- Parameters:
path
- URI to the partition file
Copyright © 2014 The Apache Software Foundation. All rights reserved.