Package ai.heavy.thrift.server
Class TTypeInfo
- java.lang.Object
-
- ai.heavy.thrift.server.TTypeInfo
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TTypeInfo>,org.apache.thrift.TBase<TTypeInfo,TTypeInfo._Fields>,org.apache.thrift.TSerializable
public class TTypeInfo extends Object implements org.apache.thrift.TBase<TTypeInfo,TTypeInfo._Fields>, Serializable, Cloneable, Comparable<TTypeInfo>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTTypeInfo._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description intcomp_paramTEncodingTypeencodingbooleanis_arraystatic Map<TTypeInfo._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapbooleannullableintprecisionintscaleintsizeTDatumTypetype
-
Constructor Summary
Constructors Constructor Description TTypeInfo()TTypeInfo(TDatumType type, TEncodingType encoding, boolean nullable, boolean is_array, int precision, int scale, int comp_param)TTypeInfo(TTypeInfo other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intcompareTo(TTypeInfo other)TTypeInfodeepCopy()booleanequals(TTypeInfo that)booleanequals(Object that)TTypeInfo._FieldsfieldForId(int fieldId)intgetComp_param()TEncodingTypegetEncoding()ObjectgetFieldValue(TTypeInfo._Fields field)intgetPrecision()intgetScale()intgetSize()TDatumTypegetType()inthashCode()booleanisIs_array()booleanisNullable()booleanisSet(TTypeInfo._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetComp_param()Returns true if field comp_param is set (has been assigned a value) and false otherwisebooleanisSetEncoding()Returns true if field encoding is set (has been assigned a value) and false otherwisebooleanisSetIs_array()Returns true if field is_array is set (has been assigned a value) and false otherwisebooleanisSetNullable()Returns true if field nullable is set (has been assigned a value) and false otherwisebooleanisSetPrecision()Returns true if field precision is set (has been assigned a value) and false otherwisebooleanisSetScale()Returns true if field scale is set (has been assigned a value) and false otherwisebooleanisSetSize()Returns true if field size is set (has been assigned a value) and false otherwisebooleanisSetType()Returns true if field type is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)TTypeInfosetComp_param(int comp_param)voidsetComp_paramIsSet(boolean value)TTypeInfosetEncoding(TEncodingType encoding)voidsetEncodingIsSet(boolean value)voidsetFieldValue(TTypeInfo._Fields field, Object value)TTypeInfosetIs_array(boolean is_array)voidsetIs_arrayIsSet(boolean value)TTypeInfosetNullable(boolean nullable)voidsetNullableIsSet(boolean value)TTypeInfosetPrecision(int precision)voidsetPrecisionIsSet(boolean value)TTypeInfosetScale(int scale)voidsetScaleIsSet(boolean value)TTypeInfosetSize(int size)voidsetSizeIsSet(boolean value)TTypeInfosetType(TDatumType type)voidsetTypeIsSet(boolean value)StringtoString()voidunsetComp_param()voidunsetEncoding()voidunsetIs_array()voidunsetNullable()voidunsetPrecision()voidunsetScale()voidunsetSize()voidunsetType()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
type
public TDatumType type
- See Also:
TDatumType
-
encoding
public TEncodingType encoding
- See Also:
TEncodingType
-
nullable
public boolean nullable
-
is_array
public boolean is_array
-
precision
public int precision
-
scale
public int scale
-
comp_param
public int comp_param
-
size
public int size
-
metaDataMap
public static final Map<TTypeInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TTypeInfo
public TTypeInfo()
-
TTypeInfo
public TTypeInfo(TDatumType type, TEncodingType encoding, boolean nullable, boolean is_array, int precision, int scale, int comp_param)
-
TTypeInfo
public TTypeInfo(TTypeInfo other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TTypeInfo deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TTypeInfo,TTypeInfo._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TTypeInfo,TTypeInfo._Fields>
-
getType
public TDatumType getType()
- See Also:
TDatumType
-
setType
public TTypeInfo setType(TDatumType type)
- See Also:
TDatumType
-
unsetType
public void unsetType()
-
isSetType
public boolean isSetType()
Returns true if field type is set (has been assigned a value) and false otherwise
-
setTypeIsSet
public void setTypeIsSet(boolean value)
-
getEncoding
public TEncodingType getEncoding()
- See Also:
TEncodingType
-
setEncoding
public TTypeInfo setEncoding(TEncodingType encoding)
- See Also:
TEncodingType
-
unsetEncoding
public void unsetEncoding()
-
isSetEncoding
public boolean isSetEncoding()
Returns true if field encoding is set (has been assigned a value) and false otherwise
-
setEncodingIsSet
public void setEncodingIsSet(boolean value)
-
isNullable
public boolean isNullable()
-
setNullable
public TTypeInfo setNullable(boolean nullable)
-
unsetNullable
public void unsetNullable()
-
isSetNullable
public boolean isSetNullable()
Returns true if field nullable is set (has been assigned a value) and false otherwise
-
setNullableIsSet
public void setNullableIsSet(boolean value)
-
isIs_array
public boolean isIs_array()
-
setIs_array
public TTypeInfo setIs_array(boolean is_array)
-
unsetIs_array
public void unsetIs_array()
-
isSetIs_array
public boolean isSetIs_array()
Returns true if field is_array is set (has been assigned a value) and false otherwise
-
setIs_arrayIsSet
public void setIs_arrayIsSet(boolean value)
-
getPrecision
public int getPrecision()
-
setPrecision
public TTypeInfo setPrecision(int precision)
-
unsetPrecision
public void unsetPrecision()
-
isSetPrecision
public boolean isSetPrecision()
Returns true if field precision is set (has been assigned a value) and false otherwise
-
setPrecisionIsSet
public void setPrecisionIsSet(boolean value)
-
getScale
public int getScale()
-
setScale
public TTypeInfo setScale(int scale)
-
unsetScale
public void unsetScale()
-
isSetScale
public boolean isSetScale()
Returns true if field scale is set (has been assigned a value) and false otherwise
-
setScaleIsSet
public void setScaleIsSet(boolean value)
-
getComp_param
public int getComp_param()
-
setComp_param
public TTypeInfo setComp_param(int comp_param)
-
unsetComp_param
public void unsetComp_param()
-
isSetComp_param
public boolean isSetComp_param()
Returns true if field comp_param is set (has been assigned a value) and false otherwise
-
setComp_paramIsSet
public void setComp_paramIsSet(boolean value)
-
getSize
public int getSize()
-
setSize
public TTypeInfo setSize(int size)
-
unsetSize
public void unsetSize()
-
isSetSize
public boolean isSetSize()
Returns true if field size is set (has been assigned a value) and false otherwise
-
setSizeIsSet
public void setSizeIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TTypeInfo._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TTypeInfo,TTypeInfo._Fields>
-
getFieldValue
public Object getFieldValue(TTypeInfo._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TTypeInfo,TTypeInfo._Fields>
-
isSet
public boolean isSet(TTypeInfo._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<TTypeInfo,TTypeInfo._Fields>
-
equals
public boolean equals(TTypeInfo that)
-
compareTo
public int compareTo(TTypeInfo other)
- Specified by:
compareToin interfaceComparable<TTypeInfo>
-
fieldForId
public TTypeInfo._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TTypeInfo,TTypeInfo._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
-
-