Package io.trino.hive.thrift.metastore
Class PartitionSpec
java.lang.Object
io.trino.hive.thrift.metastore.PartitionSpec
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<PartitionSpec>,org.apache.thrift.TBase<PartitionSpec,,PartitionSpec._Fields> org.apache.thrift.TSerializable
@Generated("Autogenerated by Thrift Compiler (0.17.0)")
public class PartitionSpec
extends Object
implements org.apache.thrift.TBase<PartitionSpec,PartitionSpec._Fields>, Serializable, Cloneable, Comparable<PartitionSpec>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<PartitionSpec._Fields,org.apache.thrift.meta_data.FieldMetaData> -
Constructor Summary
ConstructorsConstructorDescriptionPartitionSpec(PartitionSpec other) Performs a deep copy on other.PartitionSpec(String dbName, String tableName, String rootPath) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intcompareTo(PartitionSpec other) deepCopy()booleanequals(PartitionSpec that) booleanfieldForId(int fieldId) inthashCode()booleanisSet(PartitionSpec._Fields field) Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanReturns true if field catName is set (has been assigned a value) and false otherwisebooleanReturns true if field dbName is set (has been assigned a value) and false otherwisebooleanReturns true if field partitionList is set (has been assigned a value) and false otherwisebooleanReturns true if field rootPath is set (has been assigned a value) and false otherwisebooleanReturns true if field sharedSDPartitionSpec is set (has been assigned a value) and false otherwisebooleanReturns true if field tableName is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) setCatName(String catName) voidsetCatNameIsSet(boolean value) voidsetDbNameIsSet(boolean value) voidsetFieldValue(PartitionSpec._Fields field, Object value) setPartitionList(PartitionListComposingSpec partitionList) voidsetPartitionListIsSet(boolean value) setRootPath(String rootPath) voidsetRootPathIsSet(boolean value) setSharedSDPartitionSpec(PartitionSpecWithSharedSD sharedSDPartitionSpec) voidsetSharedSDPartitionSpecIsSet(boolean value) setTableName(String tableName) voidsetTableNameIsSet(boolean value) toString()voidvoidvoidvoidvoidvoidvoidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
metaDataMap
public static final Map<PartitionSpec._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Details
-
PartitionSpec
public PartitionSpec() -
PartitionSpec
-
PartitionSpec
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<PartitionSpec,PartitionSpec._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<PartitionSpec,PartitionSpec._Fields>
-
getDbName
-
setDbName
-
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
-
setTableName
-
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) -
getRootPath
-
setRootPath
-
unsetRootPath
public void unsetRootPath() -
isSetRootPath
public boolean isSetRootPath()Returns true if field rootPath is set (has been assigned a value) and false otherwise -
setRootPathIsSet
public void setRootPathIsSet(boolean value) -
getPartitionList
-
setPartitionList
-
unsetPartitionList
public void unsetPartitionList() -
isSetPartitionList
public boolean isSetPartitionList()Returns true if field partitionList is set (has been assigned a value) and false otherwise -
setPartitionListIsSet
public void setPartitionListIsSet(boolean value) -
getCatName
-
setCatName
-
unsetCatName
public void unsetCatName() -
isSetCatName
public boolean isSetCatName()Returns true if field catName is set (has been assigned a value) and false otherwise -
setCatNameIsSet
public void setCatNameIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<PartitionSpec,PartitionSpec._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<PartitionSpec,PartitionSpec._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<PartitionSpec,PartitionSpec._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<PartitionSpec>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<PartitionSpec,PartitionSpec._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException - Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException - Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
toString
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-