public class PartitionSpec extends Object implements org.apache.thrift.TBase<PartitionSpec,PartitionSpec._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
PartitionSpec._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<PartitionSpec._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
PartitionSpec() |
PartitionSpec(PartitionSpec other)
Performs a deep copy on other.
|
PartitionSpec(String dbName,
String tableName,
String rootPath) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(PartitionSpec other) |
PartitionSpec |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(PartitionSpec that) |
PartitionSpec._Fields |
fieldForId(int fieldId) |
String |
getDbName() |
Object |
getFieldValue(PartitionSpec._Fields field) |
PartitionListComposingSpec |
getPartitionList() |
String |
getRootPath() |
PartitionSpecWithSharedSD |
getSharedSDPartitionSpec() |
String |
getTableName() |
int |
hashCode() |
boolean |
isSet(PartitionSpec._Fields field)
Returns true if field corresponding to fieldID 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 |
isSetPartitionList()
Returns true if field partitionList is set (has been assigned a value) and false otherwise
|
boolean |
isSetRootPath()
Returns true if field rootPath is set (has been assigned a value) and false otherwise
|
boolean |
isSetSharedSDPartitionSpec()
Returns true if field sharedSDPartitionSpec 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
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setDbName(String dbName) |
void |
setDbNameIsSet(boolean value) |
void |
setFieldValue(PartitionSpec._Fields field,
Object value) |
void |
setPartitionList(PartitionListComposingSpec partitionList) |
void |
setPartitionListIsSet(boolean value) |
void |
setRootPath(String rootPath) |
void |
setRootPathIsSet(boolean value) |
void |
setSharedSDPartitionSpec(PartitionSpecWithSharedSD sharedSDPartitionSpec) |
void |
setSharedSDPartitionSpecIsSet(boolean value) |
void |
setTableName(String tableName) |
void |
setTableNameIsSet(boolean value) |
String |
toString() |
void |
unsetDbName() |
void |
unsetPartitionList() |
void |
unsetRootPath() |
void |
unsetSharedSDPartitionSpec() |
void |
unsetTableName() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<PartitionSpec._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public PartitionSpec()
public PartitionSpec(PartitionSpec other)
public PartitionSpec deepCopy()
deepCopy
in interface org.apache.thrift.TBase<PartitionSpec,PartitionSpec._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<PartitionSpec,PartitionSpec._Fields>
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 String getRootPath()
public void setRootPath(String rootPath)
public void unsetRootPath()
public boolean isSetRootPath()
public void setRootPathIsSet(boolean value)
public PartitionSpecWithSharedSD getSharedSDPartitionSpec()
public void setSharedSDPartitionSpec(PartitionSpecWithSharedSD sharedSDPartitionSpec)
public void unsetSharedSDPartitionSpec()
public boolean isSetSharedSDPartitionSpec()
public void setSharedSDPartitionSpecIsSet(boolean value)
public PartitionListComposingSpec getPartitionList()
public void setPartitionList(PartitionListComposingSpec partitionList)
public void unsetPartitionList()
public boolean isSetPartitionList()
public void setPartitionListIsSet(boolean value)
public void setFieldValue(PartitionSpec._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<PartitionSpec,PartitionSpec._Fields>
public Object getFieldValue(PartitionSpec._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<PartitionSpec,PartitionSpec._Fields>
public boolean isSet(PartitionSpec._Fields field)
isSet
in interface org.apache.thrift.TBase<PartitionSpec,PartitionSpec._Fields>
public boolean equals(PartitionSpec that)
public int compareTo(PartitionSpec other)
compareTo
in interface Comparable<PartitionSpec>
public PartitionSpec._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<PartitionSpec,PartitionSpec._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<PartitionSpec,PartitionSpec._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<PartitionSpec,PartitionSpec._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.