org.apache.hcatalog.mapreduce
Class PartInfo

Object
  extended by PartInfo
All Implemented Interfaces:
Serializable

public class PartInfo
extends Object
implements Serializable

The Class used to serialize the partition information read from the metadata server that maps to a partition.

See Also:
Serialized Form

Constructor Summary
PartInfo(HCatSchema partitionSchema, HCatStorageHandler storageHandler, String location, Properties hcatProperties, Map<String,String> jobProperties, HCatTableInfo tableInfo)
          Instantiates a new hcat partition info.
 
Method Summary
 String getInputFormatClassName()
           
 Properties getInputStorageHandlerProperties()
          Gets the input storage handler properties.
 Map<String,String> getJobProperties()
          Gets the job properties.
 String getLocation()
          Gets the value of location.
 String getOutputFormatClassName()
           
 HCatSchema getPartitionSchema()
          Gets the value of partitionSchema.
 Map<String,String> getPartitionValues()
          Gets the partition values.
 String getSerdeClassName()
           
 String getStorageHandlerClassName()
           
 HCatTableInfo getTableInfo()
          Gets the HCatalog table information.
 void setPartitionValues(Map<String,String> partitionValues)
          Sets the partition values.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartInfo

public PartInfo(HCatSchema partitionSchema,
                HCatStorageHandler storageHandler,
                String location,
                Properties hcatProperties,
                Map<String,String> jobProperties,
                HCatTableInfo tableInfo)
Instantiates a new hcat partition info.

Parameters:
partitionSchema - the partition schema
storageHandler - the storage handler
location - the location
hcatProperties - hcat-specific properties at the partition
jobProperties - the job properties
tableInfo - the table information
Method Detail

getPartitionSchema

public HCatSchema getPartitionSchema()
Gets the value of partitionSchema.

Returns:
the partitionSchema

getStorageHandlerClassName

public String getStorageHandlerClassName()
Returns:
the storage handler class name

getInputFormatClassName

public String getInputFormatClassName()
Returns:
the inputFormatClassName

getOutputFormatClassName

public String getOutputFormatClassName()
Returns:
the outputFormatClassName

getSerdeClassName

public String getSerdeClassName()
Returns:
the serdeClassName

getInputStorageHandlerProperties

public Properties getInputStorageHandlerProperties()
Gets the input storage handler properties.

Returns:
HCat-specific properties set at the partition

getLocation

public String getLocation()
Gets the value of location.

Returns:
the location

setPartitionValues

public void setPartitionValues(Map<String,String> partitionValues)
Sets the partition values.

Parameters:
partitionValues - the new partition values

getPartitionValues

public Map<String,String> getPartitionValues()
Gets the partition values.

Returns:
the partition values

getJobProperties

public Map<String,String> getJobProperties()
Gets the job properties.

Returns:
a map of the job properties

getTableInfo

public HCatTableInfo getTableInfo()
Gets the HCatalog table information.

Returns:
the table information