org.apache.hadoop.hive.metastore.api
Class Partition

java.lang.Object
  extended by org.apache.hadoop.hive.metastore.api.Partition
All Implemented Interfaces:
Serializable, Cloneable, org.apache.thrift.TBase

public class Partition
extends Object
implements org.apache.thrift.TBase, Serializable, Cloneable

See Also:
Serialized Form

Field Summary
static int CREATETIME
           
static int DBNAME
           
static int LASTACCESSTIME
           
static Map<Integer,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
static int PARAMETERS
           
static int SD
           
static int TABLENAME
           
static int VALUES
           
 
Constructor Summary
Partition()
           
Partition(List<String> values, String dbName, String tableName, int createTime, int lastAccessTime, StorageDescriptor sd, Map<String,String> parameters)
           
Partition(Partition other)
          Performs a deep copy on other.
 
Method Summary
 void addToValues(String elem)
           
 Partition clone()
           
 boolean equals(Object that)
           
 boolean equals(Partition that)
           
 int getCreateTime()
           
 String getDbName()
           
 Object getFieldValue(int fieldID)
           
 int getLastAccessTime()
           
 Map<String,String> getParameters()
           
 int getParametersSize()
           
 StorageDescriptor getSd()
           
 String getTableName()
           
 List<String> getValues()
           
 Iterator<String> getValuesIterator()
           
 int getValuesSize()
           
 int hashCode()
           
 boolean isSet(int fieldID)
           
 boolean isSetCreateTime()
           
 boolean isSetDbName()
           
 boolean isSetLastAccessTime()
           
 boolean isSetParameters()
           
 boolean isSetSd()
           
 boolean isSetTableName()
           
 boolean isSetValues()
           
 void putToParameters(String key, String val)
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setCreateTime(int createTime)
           
 void setDbName(String dbName)
           
 void setFieldValue(int fieldID, Object value)
           
 void setLastAccessTime(int lastAccessTime)
           
 void setParameters(Map<String,String> parameters)
           
 void setSd(StorageDescriptor sd)
           
 void setTableName(String tableName)
           
 void setValues(List<String> values)
           
 String toString()
           
 void unsetCreateTime()
           
 void unsetDbName()
           
 void unsetLastAccessTime()
           
 void unsetParameters()
           
 void unsetSd()
           
 void unsetTableName()
           
 void unsetValues()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

VALUES

public static final int VALUES
See Also:
Constant Field Values

DBNAME

public static final int DBNAME
See Also:
Constant Field Values

TABLENAME

public static final int TABLENAME
See Also:
Constant Field Values

CREATETIME

public static final int CREATETIME
See Also:
Constant Field Values

LASTACCESSTIME

public static final int LASTACCESSTIME
See Also:
Constant Field Values

SD

public static final int SD
See Also:
Constant Field Values

PARAMETERS

public static final int PARAMETERS
See Also:
Constant Field Values

metaDataMap

public static final Map<Integer,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

Partition

public Partition()

Partition

public Partition(List<String> values,
                 String dbName,
                 String tableName,
                 int createTime,
                 int lastAccessTime,
                 StorageDescriptor sd,
                 Map<String,String> parameters)

Partition

public Partition(Partition other)
Performs a deep copy on other.

Method Detail

clone

public Partition clone()
Overrides:
clone in class Object

getValuesSize

public int getValuesSize()

getValuesIterator

public Iterator<String> getValuesIterator()

addToValues

public void addToValues(String elem)

getValues

public List<String> getValues()

setValues

public void setValues(List<String> values)

unsetValues

public void unsetValues()

isSetValues

public boolean isSetValues()

getDbName

public String getDbName()

setDbName

public void setDbName(String dbName)

unsetDbName

public void unsetDbName()

isSetDbName

public boolean isSetDbName()

getTableName

public String getTableName()

setTableName

public void setTableName(String tableName)

unsetTableName

public void unsetTableName()

isSetTableName

public boolean isSetTableName()

getCreateTime

public int getCreateTime()

setCreateTime

public void setCreateTime(int createTime)

unsetCreateTime

public void unsetCreateTime()

isSetCreateTime

public boolean isSetCreateTime()

getLastAccessTime

public int getLastAccessTime()

setLastAccessTime

public void setLastAccessTime(int lastAccessTime)

unsetLastAccessTime

public void unsetLastAccessTime()

isSetLastAccessTime

public boolean isSetLastAccessTime()

getSd

public StorageDescriptor getSd()

setSd

public void setSd(StorageDescriptor sd)

unsetSd

public void unsetSd()

isSetSd

public boolean isSetSd()

getParametersSize

public int getParametersSize()

putToParameters

public void putToParameters(String key,
                            String val)

getParameters

public Map<String,String> getParameters()

setParameters

public void setParameters(Map<String,String> parameters)

unsetParameters

public void unsetParameters()

isSetParameters

public boolean isSetParameters()

setFieldValue

public void setFieldValue(int fieldID,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase

getFieldValue

public Object getFieldValue(int fieldID)
Specified by:
getFieldValue in interface org.apache.thrift.TBase

isSet

public boolean isSet(int fieldID)
Specified by:
isSet in interface org.apache.thrift.TBase

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(Partition that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase
Throws:
org.apache.thrift.TException

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2009 The Apache Software Foundation