org.apache.hadoop.hive.ql.plan
Class PartitionDesc

java.lang.Object
  extended by 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

Constructor Summary
PartitionDesc()
           
PartitionDesc(Partition part)
           
PartitionDesc(Partition part, TableDesc tblDesc)
           
PartitionDesc(TableDesc table, LinkedHashMap<String,String> partSpec)
           
 
Method Summary
 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.
 Class<? extends org.apache.hadoop.mapred.InputFormat> getInputFileFormatClass()
           
 String getInputFileFormatClassName()
           
 Class<? extends HiveOutputFormat> getOutputFileFormatClass()
           
 String getOutputFileFormatClassName()
           
 Properties getOverlayedProperties()
           
 LinkedHashMap<String,String> getPartSpec()
           
 Properties getProperties()
           
 String getSerdeClassName()
           
 TableDesc getTableDesc()
           
 String getTableName()
           
 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)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.