Package ai.heavy.thrift.server
Class TColumnType
- java.lang.Object
-
- ai.heavy.thrift.server.TColumnType
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TColumnType>,org.apache.thrift.TBase<TColumnType,TColumnType._Fields>,org.apache.thrift.TSerializable
public class TColumnType extends Object implements org.apache.thrift.TBase<TColumnType,TColumnType._Fields>, Serializable, Cloneable, Comparable<TColumnType>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTColumnType._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description longcol_idStringcol_nameTTypeInfocol_typeStringdefault_valuebooleanis_physicalbooleanis_reserved_keywordbooleanis_systemstatic Map<TColumnType._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapStringsrc_name
-
Constructor Summary
Constructors Constructor Description TColumnType()TColumnType(TColumnType other)Performs a deep copy on other.TColumnType(String col_name, TTypeInfo col_type, boolean is_reserved_keyword, String src_name, boolean is_system, boolean is_physical, long col_id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intcompareTo(TColumnType other)TColumnTypedeepCopy()booleanequals(TColumnType that)booleanequals(Object that)TColumnType._FieldsfieldForId(int fieldId)longgetCol_id()StringgetCol_name()TTypeInfogetCol_type()StringgetDefault_value()ObjectgetFieldValue(TColumnType._Fields field)StringgetSrc_name()inthashCode()booleanisIs_physical()booleanisIs_reserved_keyword()booleanisIs_system()booleanisSet(TColumnType._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetCol_id()Returns true if field col_id is set (has been assigned a value) and false otherwisebooleanisSetCol_name()Returns true if field col_name is set (has been assigned a value) and false otherwisebooleanisSetCol_type()Returns true if field col_type is set (has been assigned a value) and false otherwisebooleanisSetDefault_value()Returns true if field default_value is set (has been assigned a value) and false otherwisebooleanisSetIs_physical()Returns true if field is_physical is set (has been assigned a value) and false otherwisebooleanisSetIs_reserved_keyword()Returns true if field is_reserved_keyword is set (has been assigned a value) and false otherwisebooleanisSetIs_system()Returns true if field is_system is set (has been assigned a value) and false otherwisebooleanisSetSrc_name()Returns true if field src_name is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)TColumnTypesetCol_id(long col_id)voidsetCol_idIsSet(boolean value)TColumnTypesetCol_name(String col_name)voidsetCol_nameIsSet(boolean value)TColumnTypesetCol_type(TTypeInfo col_type)voidsetCol_typeIsSet(boolean value)TColumnTypesetDefault_value(String default_value)voidsetDefault_valueIsSet(boolean value)voidsetFieldValue(TColumnType._Fields field, Object value)TColumnTypesetIs_physical(boolean is_physical)voidsetIs_physicalIsSet(boolean value)TColumnTypesetIs_reserved_keyword(boolean is_reserved_keyword)voidsetIs_reserved_keywordIsSet(boolean value)TColumnTypesetIs_system(boolean is_system)voidsetIs_systemIsSet(boolean value)TColumnTypesetSrc_name(String src_name)voidsetSrc_nameIsSet(boolean value)StringtoString()voidunsetCol_id()voidunsetCol_name()voidunsetCol_type()voidunsetDefault_value()voidunsetIs_physical()voidunsetIs_reserved_keyword()voidunsetIs_system()voidunsetSrc_name()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
col_name
public String col_name
-
col_type
public TTypeInfo col_type
-
is_reserved_keyword
public boolean is_reserved_keyword
-
src_name
public String src_name
-
is_system
public boolean is_system
-
is_physical
public boolean is_physical
-
col_id
public long col_id
-
default_value
public String default_value
-
metaDataMap
public static final Map<TColumnType._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TColumnType
public TColumnType()
-
TColumnType
public TColumnType(String col_name, TTypeInfo col_type, boolean is_reserved_keyword, String src_name, boolean is_system, boolean is_physical, long col_id)
-
TColumnType
public TColumnType(TColumnType other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TColumnType deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TColumnType,TColumnType._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TColumnType,TColumnType._Fields>
-
getCol_name
public String getCol_name()
-
setCol_name
public TColumnType setCol_name(String col_name)
-
unsetCol_name
public void unsetCol_name()
-
isSetCol_name
public boolean isSetCol_name()
Returns true if field col_name is set (has been assigned a value) and false otherwise
-
setCol_nameIsSet
public void setCol_nameIsSet(boolean value)
-
getCol_type
public TTypeInfo getCol_type()
-
setCol_type
public TColumnType setCol_type(TTypeInfo col_type)
-
unsetCol_type
public void unsetCol_type()
-
isSetCol_type
public boolean isSetCol_type()
Returns true if field col_type is set (has been assigned a value) and false otherwise
-
setCol_typeIsSet
public void setCol_typeIsSet(boolean value)
-
isIs_reserved_keyword
public boolean isIs_reserved_keyword()
-
setIs_reserved_keyword
public TColumnType setIs_reserved_keyword(boolean is_reserved_keyword)
-
unsetIs_reserved_keyword
public void unsetIs_reserved_keyword()
-
isSetIs_reserved_keyword
public boolean isSetIs_reserved_keyword()
Returns true if field is_reserved_keyword is set (has been assigned a value) and false otherwise
-
setIs_reserved_keywordIsSet
public void setIs_reserved_keywordIsSet(boolean value)
-
getSrc_name
public String getSrc_name()
-
setSrc_name
public TColumnType setSrc_name(String src_name)
-
unsetSrc_name
public void unsetSrc_name()
-
isSetSrc_name
public boolean isSetSrc_name()
Returns true if field src_name is set (has been assigned a value) and false otherwise
-
setSrc_nameIsSet
public void setSrc_nameIsSet(boolean value)
-
isIs_system
public boolean isIs_system()
-
setIs_system
public TColumnType setIs_system(boolean is_system)
-
unsetIs_system
public void unsetIs_system()
-
isSetIs_system
public boolean isSetIs_system()
Returns true if field is_system is set (has been assigned a value) and false otherwise
-
setIs_systemIsSet
public void setIs_systemIsSet(boolean value)
-
isIs_physical
public boolean isIs_physical()
-
setIs_physical
public TColumnType setIs_physical(boolean is_physical)
-
unsetIs_physical
public void unsetIs_physical()
-
isSetIs_physical
public boolean isSetIs_physical()
Returns true if field is_physical is set (has been assigned a value) and false otherwise
-
setIs_physicalIsSet
public void setIs_physicalIsSet(boolean value)
-
getCol_id
public long getCol_id()
-
setCol_id
public TColumnType setCol_id(long col_id)
-
unsetCol_id
public void unsetCol_id()
-
isSetCol_id
public boolean isSetCol_id()
Returns true if field col_id is set (has been assigned a value) and false otherwise
-
setCol_idIsSet
public void setCol_idIsSet(boolean value)
-
getDefault_value
public String getDefault_value()
-
setDefault_value
public TColumnType setDefault_value(String default_value)
-
unsetDefault_value
public void unsetDefault_value()
-
isSetDefault_value
public boolean isSetDefault_value()
Returns true if field default_value is set (has been assigned a value) and false otherwise
-
setDefault_valueIsSet
public void setDefault_valueIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TColumnType._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TColumnType,TColumnType._Fields>
-
getFieldValue
public Object getFieldValue(TColumnType._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TColumnType,TColumnType._Fields>
-
isSet
public boolean isSet(TColumnType._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<TColumnType,TColumnType._Fields>
-
equals
public boolean equals(TColumnType that)
-
compareTo
public int compareTo(TColumnType other)
- Specified by:
compareToin interfaceComparable<TColumnType>
-
fieldForId
public TColumnType._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TColumnType,TColumnType._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
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-