Package io.trino.hive.thrift.metastore
Class Type
java.lang.Object
io.trino.hive.thrift.metastore.Type
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Type>,org.apache.thrift.TBase<Type,,Type._Fields> org.apache.thrift.TSerializable
@Generated("Autogenerated by Thrift Compiler (0.17.0)")
public class Type
extends Object
implements org.apache.thrift.TBase<Type,Type._Fields>, Serializable, Cloneable, Comparable<Type>
- 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<Type._Fields,org.apache.thrift.meta_data.FieldMetaData> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToFields(FieldSchema elem) voidclear()intdeepCopy()booleanbooleanfieldForId(int fieldId) intgetFieldValue(Type._Fields field) getName()getType1()getType2()inthashCode()booleanisSet(Type._Fields field) Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanReturns true if field fields is set (has been assigned a value) and false otherwisebooleanReturns true if field name is set (has been assigned a value) and false otherwisebooleanReturns true if field type1 is set (has been assigned a value) and false otherwisebooleanReturns true if field type2 is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) setFields(List<FieldSchema> fields) voidsetFieldsIsSet(boolean value) voidsetFieldValue(Type._Fields field, Object value) voidsetNameIsSet(boolean value) voidsetType1IsSet(boolean value) voidsetType2IsSet(boolean value) toString()voidvoidvoidvoidvoidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
metaDataMap
-
-
Constructor Details
-
Type
public Type() -
Type
-
Type
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<Type,Type._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<Type,Type._Fields>
-
getName
-
setName
-
unsetName
public void unsetName() -
isSetName
public boolean isSetName()Returns true if field name is set (has been assigned a value) and false otherwise -
setNameIsSet
public void setNameIsSet(boolean value) -
getType1
-
setType1
-
unsetType1
public void unsetType1() -
isSetType1
public boolean isSetType1()Returns true if field type1 is set (has been assigned a value) and false otherwise -
setType1IsSet
public void setType1IsSet(boolean value) -
getType2
-
setType2
-
unsetType2
public void unsetType2() -
isSetType2
public boolean isSetType2()Returns true if field type2 is set (has been assigned a value) and false otherwise -
setType2IsSet
public void setType2IsSet(boolean value) -
getFieldsSize
public int getFieldsSize() -
getFieldsIterator
-
addToFields
-
getFields
-
setFields
-
unsetFields
public void unsetFields() -
isSetFields
public boolean isSetFields()Returns true if field fields is set (has been assigned a value) and false otherwise -
setFieldsIsSet
public void setFieldsIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<Type,Type._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<Type,Type._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<Type,Type._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<Type>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<Type,Type._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
-