public class Partition extends Object implements org.apache.thrift.TBase<Partition,Partition._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
Partition._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
static Map<Partition._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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) |
public static final Map<Partition._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public Partition()
public Partition(List<String> values, String dbName, String tableName, int createTime, int lastAccessTime, StorageDescriptor sd, Map<String,String> parameters)
public Partition(Partition other)
public Partition deepCopy()
deepCopy
in interface org.apache.thrift.TBase<Partition,Partition._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<Partition,Partition._Fields>
public int getValuesSize()
public void addToValues(String elem)
public void unsetValues()
public boolean isSetValues()
public void setValuesIsSet(boolean value)
public String getDbName()
public void setDbName(String dbName)
public void unsetDbName()
public boolean isSetDbName()
public void setDbNameIsSet(boolean value)
public String getTableName()
public void setTableName(String tableName)
public void unsetTableName()
public boolean isSetTableName()
public void setTableNameIsSet(boolean value)
public int getCreateTime()
public void setCreateTime(int createTime)
public void unsetCreateTime()
public boolean isSetCreateTime()
public void setCreateTimeIsSet(boolean value)
public int getLastAccessTime()
public void setLastAccessTime(int lastAccessTime)
public void unsetLastAccessTime()
public boolean isSetLastAccessTime()
public void setLastAccessTimeIsSet(boolean value)
public StorageDescriptor getSd()
public void setSd(StorageDescriptor sd)
public void unsetSd()
public boolean isSetSd()
public void setSdIsSet(boolean value)
public int getParametersSize()
public void unsetParameters()
public boolean isSetParameters()
public void setParametersIsSet(boolean value)
public PrincipalPrivilegeSet getPrivileges()
public void setPrivileges(PrincipalPrivilegeSet privileges)
public void unsetPrivileges()
public boolean isSetPrivileges()
public void setPrivilegesIsSet(boolean value)
public void setFieldValue(Partition._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<Partition,Partition._Fields>
public Object getFieldValue(Partition._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<Partition,Partition._Fields>
public boolean isSet(Partition._Fields field)
isSet
in interface org.apache.thrift.TBase<Partition,Partition._Fields>
public boolean equals(Partition that)
public int compareTo(Partition other)
compareTo
in interface Comparable<Partition>
public Partition._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<Partition,Partition._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<Partition,Partition._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<Partition,Partition._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2017 The Apache Software Foundation. All rights reserved.