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, Comparable<Partition>, org.apache.thrift.TBase<Partition,Partition._Fields>

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

See Also:
Serialized Form

Nested Class Summary
static class Partition._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<Partition._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
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)
           
 void clear()
           
 int compareTo(Partition other)
           
 Partition deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(Partition that)
           
 Partition._Fields fieldForId(int fieldId)
           
 int getCreateTime()
           
 String getDbName()
           
 Object getFieldValue(Partition._Fields field)
           
 int getLastAccessTime()
           
 Map<String,String> getParameters()
           
 int getParametersSize()
           
 PrincipalPrivilegeSet getPrivileges()
           
 StorageDescriptor getSd()
           
 String getTableName()
           
 List<String> getValues()
           
 Iterator<String> getValuesIterator()
           
 int getValuesSize()
           
 int hashCode()
           
 boolean isSet(Partition._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetCreateTime()
          Returns true if field createTime is set (has been assigned a value) and false otherwise
 boolean isSetDbName()
          Returns true if field dbName is set (has been assigned a value) and false otherwise
 boolean isSetLastAccessTime()
          Returns true if field lastAccessTime is set (has been assigned a value) and false otherwise
 boolean isSetParameters()
          Returns true if field parameters is set (has been assigned a value) and false otherwise
 boolean isSetPrivileges()
          Returns true if field privileges is set (has been assigned a value) and false otherwise
 boolean isSetSd()
          Returns true if field sd is set (has been assigned a value) and false otherwise
 boolean isSetTableName()
          Returns true if field tableName is set (has been assigned a value) and false otherwise
 boolean isSetValues()
          Returns true if field values is set (has been assigned a value) and false otherwise
 void putToParameters(String key, String val)
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setCreateTime(int createTime)
           
 void setCreateTimeIsSet(boolean value)
           
 void setDbName(String dbName)
           
 void setDbNameIsSet(boolean value)
           
 void setFieldValue(Partition._Fields field, Object value)
           
 void setLastAccessTime(int lastAccessTime)
           
 void setLastAccessTimeIsSet(boolean value)
           
 void setParameters(Map<String,String> parameters)
           
 void setParametersIsSet(boolean value)
           
 void setPrivileges(PrincipalPrivilegeSet privileges)
           
 void setPrivilegesIsSet(boolean value)
           
 void setSd(StorageDescriptor sd)
           
 void setSdIsSet(boolean value)
           
 void setTableName(String tableName)
           
 void setTableNameIsSet(boolean value)
           
 void setValues(List<String> values)
           
 void setValuesIsSet(boolean value)
           
 String toString()
           
 void unsetCreateTime()
           
 void unsetDbName()
           
 void unsetLastAccessTime()
           
 void unsetParameters()
           
 void unsetPrivileges()
           
 void unsetSd()
           
 void unsetTableName()
           
 void unsetValues()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

metaDataMap

public static final Map<Partition._Fields,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

deepCopy

public Partition deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<Partition,Partition._Fields>

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<Partition,Partition._Fields>

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()
Returns true if field values is set (has been assigned a value) and false otherwise


setValuesIsSet

public void setValuesIsSet(boolean value)

getDbName

public String getDbName()

setDbName

public void setDbName(String dbName)

unsetDbName

public void unsetDbName()

isSetDbName

public boolean isSetDbName()
Returns true if field dbName is set (has been assigned a value) and false otherwise


setDbNameIsSet

public void setDbNameIsSet(boolean value)

getTableName

public String getTableName()

setTableName

public void setTableName(String tableName)

unsetTableName

public void unsetTableName()

isSetTableName

public boolean isSetTableName()
Returns true if field tableName is set (has been assigned a value) and false otherwise


setTableNameIsSet

public void setTableNameIsSet(boolean value)

getCreateTime

public int getCreateTime()

setCreateTime

public void setCreateTime(int createTime)

unsetCreateTime

public void unsetCreateTime()

isSetCreateTime

public boolean isSetCreateTime()
Returns true if field createTime is set (has been assigned a value) and false otherwise


setCreateTimeIsSet

public void setCreateTimeIsSet(boolean value)

getLastAccessTime

public int getLastAccessTime()

setLastAccessTime

public void setLastAccessTime(int lastAccessTime)

unsetLastAccessTime

public void unsetLastAccessTime()

isSetLastAccessTime

public boolean isSetLastAccessTime()
Returns true if field lastAccessTime is set (has been assigned a value) and false otherwise


setLastAccessTimeIsSet

public void setLastAccessTimeIsSet(boolean value)

getSd

public StorageDescriptor getSd()

setSd

public void setSd(StorageDescriptor sd)

unsetSd

public void unsetSd()

isSetSd

public boolean isSetSd()
Returns true if field sd is set (has been assigned a value) and false otherwise


setSdIsSet

public void setSdIsSet(boolean value)

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()
Returns true if field parameters is set (has been assigned a value) and false otherwise


setParametersIsSet

public void setParametersIsSet(boolean value)

getPrivileges

public PrincipalPrivilegeSet getPrivileges()

setPrivileges

public void setPrivileges(PrincipalPrivilegeSet privileges)

unsetPrivileges

public void unsetPrivileges()

isSetPrivileges

public boolean isSetPrivileges()
Returns true if field privileges is set (has been assigned a value) and false otherwise


setPrivilegesIsSet

public void setPrivilegesIsSet(boolean value)

setFieldValue

public void setFieldValue(Partition._Fields field,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<Partition,Partition._Fields>

getFieldValue

public Object getFieldValue(Partition._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<Partition,Partition._Fields>

isSet

public boolean isSet(Partition._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<Partition,Partition._Fields>

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

compareTo

public int compareTo(Partition other)
Specified by:
compareTo in interface Comparable<Partition>

fieldForId

public Partition._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<Partition,Partition._Fields>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<Partition,Partition._Fields>
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<Partition,Partition._Fields>
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 © 2011 The Apache Software Foundation