org.apache.hadoop.hive.metastore.api
Class Partition
java.lang.Object
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
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
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.
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