Package ai.heavy.thrift.server
Class TStringValue
- java.lang.Object
-
- ai.heavy.thrift.server.TStringValue
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TStringValue>,org.apache.thrift.TBase<TStringValue,TStringValue._Fields>,org.apache.thrift.TSerializable
public class TStringValue extends Object implements org.apache.thrift.TBase<TStringValue,TStringValue._Fields>, Serializable, Cloneable, Comparable<TStringValue>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTStringValue._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description booleanis_nullstatic Map<TStringValue._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapStringstr_val
-
Constructor Summary
Constructors Constructor Description TStringValue()TStringValue(TStringValue other)Performs a deep copy on other.TStringValue(String str_val, boolean is_null)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intcompareTo(TStringValue other)TStringValuedeepCopy()booleanequals(TStringValue that)booleanequals(Object that)TStringValue._FieldsfieldForId(int fieldId)ObjectgetFieldValue(TStringValue._Fields field)StringgetStr_val()inthashCode()booleanisIs_null()booleanisSet(TStringValue._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetIs_null()Returns true if field is_null is set (has been assigned a value) and false otherwisebooleanisSetStr_val()Returns true if field str_val is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)voidsetFieldValue(TStringValue._Fields field, Object value)TStringValuesetIs_null(boolean is_null)voidsetIs_nullIsSet(boolean value)TStringValuesetStr_val(String str_val)voidsetStr_valIsSet(boolean value)StringtoString()voidunsetIs_null()voidunsetStr_val()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
str_val
public String str_val
-
is_null
public boolean is_null
-
metaDataMap
public static final Map<TStringValue._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TStringValue
public TStringValue()
-
TStringValue
public TStringValue(String str_val, boolean is_null)
-
TStringValue
public TStringValue(TStringValue other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TStringValue deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TStringValue,TStringValue._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TStringValue,TStringValue._Fields>
-
getStr_val
public String getStr_val()
-
setStr_val
public TStringValue setStr_val(String str_val)
-
unsetStr_val
public void unsetStr_val()
-
isSetStr_val
public boolean isSetStr_val()
Returns true if field str_val is set (has been assigned a value) and false otherwise
-
setStr_valIsSet
public void setStr_valIsSet(boolean value)
-
isIs_null
public boolean isIs_null()
-
setIs_null
public TStringValue setIs_null(boolean is_null)
-
unsetIs_null
public void unsetIs_null()
-
isSetIs_null
public boolean isSetIs_null()
Returns true if field is_null is set (has been assigned a value) and false otherwise
-
setIs_nullIsSet
public void setIs_nullIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TStringValue._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TStringValue,TStringValue._Fields>
-
getFieldValue
public Object getFieldValue(TStringValue._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TStringValue,TStringValue._Fields>
-
isSet
public boolean isSet(TStringValue._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<TStringValue,TStringValue._Fields>
-
equals
public boolean equals(TStringValue that)
-
compareTo
public int compareTo(TStringValue other)
- Specified by:
compareToin interfaceComparable<TStringValue>
-
fieldForId
public TStringValue._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TStringValue,TStringValue._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
-
-