Package ai.heavy.thrift.server
Class TQueryResult
- java.lang.Object
-
- ai.heavy.thrift.server.TQueryResult
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TQueryResult>,org.apache.thrift.TBase<TQueryResult,TQueryResult._Fields>,org.apache.thrift.TSerializable
public class TQueryResult extends Object implements org.apache.thrift.TBase<TQueryResult,TQueryResult._Fields>, Serializable, Cloneable, Comparable<TQueryResult>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTQueryResult._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description Stringdebuglongexecution_time_msstatic Map<TQueryResult._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapStringnonceTQueryTypequery_typeTRowSetrow_setbooleansuccesslongtotal_time_ms
-
Constructor Summary
Constructors Constructor Description TQueryResult()TQueryResult(TQueryResult other)Performs a deep copy on other.TQueryResult(TRowSet row_set, long execution_time_ms, long total_time_ms, String nonce, String debug, boolean success, TQueryType query_type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intcompareTo(TQueryResult other)TQueryResultdeepCopy()booleanequals(TQueryResult that)booleanequals(Object that)TQueryResult._FieldsfieldForId(int fieldId)StringgetDebug()longgetExecution_time_ms()ObjectgetFieldValue(TQueryResult._Fields field)StringgetNonce()TQueryTypegetQuery_type()TRowSetgetRow_set()longgetTotal_time_ms()inthashCode()booleanisSet(TQueryResult._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetDebug()Returns true if field debug is set (has been assigned a value) and false otherwisebooleanisSetExecution_time_ms()Returns true if field execution_time_ms is set (has been assigned a value) and false otherwisebooleanisSetNonce()Returns true if field nonce is set (has been assigned a value) and false otherwisebooleanisSetQuery_type()Returns true if field query_type is set (has been assigned a value) and false otherwisebooleanisSetRow_set()Returns true if field row_set is set (has been assigned a value) and false otherwisebooleanisSetSuccess()Returns true if field success is set (has been assigned a value) and false otherwisebooleanisSetTotal_time_ms()Returns true if field total_time_ms is set (has been assigned a value) and false otherwisebooleanisSuccess()voidread(org.apache.thrift.protocol.TProtocol iprot)TQueryResultsetDebug(String debug)voidsetDebugIsSet(boolean value)TQueryResultsetExecution_time_ms(long execution_time_ms)voidsetExecution_time_msIsSet(boolean value)voidsetFieldValue(TQueryResult._Fields field, Object value)TQueryResultsetNonce(String nonce)voidsetNonceIsSet(boolean value)TQueryResultsetQuery_type(TQueryType query_type)voidsetQuery_typeIsSet(boolean value)TQueryResultsetRow_set(TRowSet row_set)voidsetRow_setIsSet(boolean value)TQueryResultsetSuccess(boolean success)voidsetSuccessIsSet(boolean value)TQueryResultsetTotal_time_ms(long total_time_ms)voidsetTotal_time_msIsSet(boolean value)StringtoString()voidunsetDebug()voidunsetExecution_time_ms()voidunsetNonce()voidunsetQuery_type()voidunsetRow_set()voidunsetSuccess()voidunsetTotal_time_ms()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
row_set
public TRowSet row_set
-
execution_time_ms
public long execution_time_ms
-
total_time_ms
public long total_time_ms
-
nonce
public String nonce
-
debug
public String debug
-
success
public boolean success
-
query_type
public TQueryType query_type
- See Also:
TQueryType
-
metaDataMap
public static final Map<TQueryResult._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TQueryResult
public TQueryResult()
-
TQueryResult
public TQueryResult(TRowSet row_set, long execution_time_ms, long total_time_ms, String nonce, String debug, boolean success, TQueryType query_type)
-
TQueryResult
public TQueryResult(TQueryResult other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TQueryResult deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TQueryResult,TQueryResult._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TQueryResult,TQueryResult._Fields>
-
getRow_set
public TRowSet getRow_set()
-
setRow_set
public TQueryResult setRow_set(TRowSet row_set)
-
unsetRow_set
public void unsetRow_set()
-
isSetRow_set
public boolean isSetRow_set()
Returns true if field row_set is set (has been assigned a value) and false otherwise
-
setRow_setIsSet
public void setRow_setIsSet(boolean value)
-
getExecution_time_ms
public long getExecution_time_ms()
-
setExecution_time_ms
public TQueryResult setExecution_time_ms(long execution_time_ms)
-
unsetExecution_time_ms
public void unsetExecution_time_ms()
-
isSetExecution_time_ms
public boolean isSetExecution_time_ms()
Returns true if field execution_time_ms is set (has been assigned a value) and false otherwise
-
setExecution_time_msIsSet
public void setExecution_time_msIsSet(boolean value)
-
getTotal_time_ms
public long getTotal_time_ms()
-
setTotal_time_ms
public TQueryResult setTotal_time_ms(long total_time_ms)
-
unsetTotal_time_ms
public void unsetTotal_time_ms()
-
isSetTotal_time_ms
public boolean isSetTotal_time_ms()
Returns true if field total_time_ms is set (has been assigned a value) and false otherwise
-
setTotal_time_msIsSet
public void setTotal_time_msIsSet(boolean value)
-
getNonce
public String getNonce()
-
setNonce
public TQueryResult setNonce(String nonce)
-
unsetNonce
public void unsetNonce()
-
isSetNonce
public boolean isSetNonce()
Returns true if field nonce is set (has been assigned a value) and false otherwise
-
setNonceIsSet
public void setNonceIsSet(boolean value)
-
getDebug
public String getDebug()
-
setDebug
public TQueryResult setDebug(String debug)
-
unsetDebug
public void unsetDebug()
-
isSetDebug
public boolean isSetDebug()
Returns true if field debug is set (has been assigned a value) and false otherwise
-
setDebugIsSet
public void setDebugIsSet(boolean value)
-
isSuccess
public boolean isSuccess()
-
setSuccess
public TQueryResult setSuccess(boolean success)
-
unsetSuccess
public void unsetSuccess()
-
isSetSuccess
public boolean isSetSuccess()
Returns true if field success is set (has been assigned a value) and false otherwise
-
setSuccessIsSet
public void setSuccessIsSet(boolean value)
-
getQuery_type
public TQueryType getQuery_type()
- See Also:
TQueryType
-
setQuery_type
public TQueryResult setQuery_type(TQueryType query_type)
- See Also:
TQueryType
-
unsetQuery_type
public void unsetQuery_type()
-
isSetQuery_type
public boolean isSetQuery_type()
Returns true if field query_type is set (has been assigned a value) and false otherwise
-
setQuery_typeIsSet
public void setQuery_typeIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TQueryResult._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TQueryResult,TQueryResult._Fields>
-
getFieldValue
public Object getFieldValue(TQueryResult._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TQueryResult,TQueryResult._Fields>
-
isSet
public boolean isSet(TQueryResult._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<TQueryResult,TQueryResult._Fields>
-
equals
public boolean equals(TQueryResult that)
-
compareTo
public int compareTo(TQueryResult other)
- Specified by:
compareToin interfaceComparable<TQueryResult>
-
fieldForId
public TQueryResult._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TQueryResult,TQueryResult._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
-
-