org.apache.hcatalog.mapreduce
Class PartInfo

java.lang.Object
  extended by org.apache.hcatalog.mapreduce.PartInfo
All Implemented Interfaces:
java.io.Serializable

public class PartInfo
extends java.lang.Object
implements java.io.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, java.lang.String inputStorageDriverClass, java.lang.String location, java.util.Properties hcatProperties)
          Instantiates a new hcat partition info.
 
Method Summary
 java.lang.String getInputStorageDriverClass()
          Gets the value of input storage driver class name.
 java.util.Properties getInputStorageDriverProperties()
          Gets the value of hcatProperties.
 java.lang.String getLocation()
          Gets the value of location.
 HCatSchema getPartitionSchema()
          Gets the value of partitionSchema.
 java.util.Map<java.lang.String,java.lang.String> getPartitionValues()
          Gets the partition values.
 void setPartitionValues(java.util.Map<java.lang.String,java.lang.String> partitionValues)
          Sets the partition values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartInfo

public PartInfo(HCatSchema partitionSchema,
                java.lang.String inputStorageDriverClass,
                java.lang.String location,
                java.util.Properties hcatProperties)
Instantiates a new hcat partition info.

Parameters:
partitionSchema - the partition schema
inputStorageDriverClass - the input storage driver class name
location - the location
hcatProperties - hcat-specific properties at the partition
Method Detail

getPartitionSchema

public HCatSchema getPartitionSchema()
Gets the value of partitionSchema.

Returns:
the partitionSchema

getInputStorageDriverClass

public java.lang.String getInputStorageDriverClass()
Gets the value of input storage driver class name.

Returns:
the input storage driver class name

getInputStorageDriverProperties

public java.util.Properties getInputStorageDriverProperties()
Gets the value of hcatProperties.

Returns:
the hcatProperties

getLocation

public java.lang.String getLocation()
Gets the value of location.

Returns:
the location

setPartitionValues

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

Parameters:
partitionValues - the new partition values

getPartitionValues

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

Returns:
the partition values