public class TStatus extends Object implements org.apache.thrift.TBase<TStatus,TStatus._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
TStatus._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
static Map<TStatus._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
TStatus() |
TStatus(TStatus other)
Performs a deep copy on other.
|
TStatus(TStatusCode statusCode) |
Modifier and Type | Method and Description |
---|---|
void |
addToInfoMessages(String elem) |
void |
clear() |
int |
compareTo(TStatus other) |
TStatus |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(TStatus that) |
TStatus._Fields |
fieldForId(int fieldId) |
int |
getErrorCode() |
String |
getErrorMessage() |
Object |
getFieldValue(TStatus._Fields field) |
List<String> |
getInfoMessages() |
Iterator<String> |
getInfoMessagesIterator() |
int |
getInfoMessagesSize() |
String |
getSqlState() |
TStatusCode |
getStatusCode() |
int |
hashCode() |
boolean |
isSet(TStatus._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetErrorCode()
Returns true if field errorCode is set (has been assigned a value) and false otherwise
|
boolean |
isSetErrorMessage()
Returns true if field errorMessage is set (has been assigned a value) and false otherwise
|
boolean |
isSetInfoMessages()
Returns true if field infoMessages is set (has been assigned a value) and false otherwise
|
boolean |
isSetSqlState()
Returns true if field sqlState is set (has been assigned a value) and false otherwise
|
boolean |
isSetStatusCode()
Returns true if field statusCode is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setErrorCode(int errorCode) |
void |
setErrorCodeIsSet(boolean value) |
void |
setErrorMessage(String errorMessage) |
void |
setErrorMessageIsSet(boolean value) |
void |
setFieldValue(TStatus._Fields field,
Object value) |
void |
setInfoMessages(List<String> infoMessages) |
void |
setInfoMessagesIsSet(boolean value) |
void |
setSqlState(String sqlState) |
void |
setSqlStateIsSet(boolean value) |
void |
setStatusCode(TStatusCode statusCode) |
void |
setStatusCodeIsSet(boolean value) |
String |
toString() |
void |
unsetErrorCode() |
void |
unsetErrorMessage() |
void |
unsetInfoMessages() |
void |
unsetSqlState() |
void |
unsetStatusCode() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<TStatus._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public TStatus()
public TStatus(TStatusCode statusCode)
public TStatus(TStatus other)
public TStatus deepCopy()
deepCopy
in interface org.apache.thrift.TBase<TStatus,TStatus._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<TStatus,TStatus._Fields>
public TStatusCode getStatusCode()
TStatusCode
public void setStatusCode(TStatusCode statusCode)
TStatusCode
public void unsetStatusCode()
public boolean isSetStatusCode()
public void setStatusCodeIsSet(boolean value)
public int getInfoMessagesSize()
public void addToInfoMessages(String elem)
public void unsetInfoMessages()
public boolean isSetInfoMessages()
public void setInfoMessagesIsSet(boolean value)
public String getSqlState()
public void setSqlState(String sqlState)
public void unsetSqlState()
public boolean isSetSqlState()
public void setSqlStateIsSet(boolean value)
public int getErrorCode()
public void setErrorCode(int errorCode)
public void unsetErrorCode()
public boolean isSetErrorCode()
public void setErrorCodeIsSet(boolean value)
public String getErrorMessage()
public void setErrorMessage(String errorMessage)
public void unsetErrorMessage()
public boolean isSetErrorMessage()
public void setErrorMessageIsSet(boolean value)
public void setFieldValue(TStatus._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<TStatus,TStatus._Fields>
public Object getFieldValue(TStatus._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<TStatus,TStatus._Fields>
public boolean isSet(TStatus._Fields field)
isSet
in interface org.apache.thrift.TBase<TStatus,TStatus._Fields>
public boolean equals(TStatus that)
public int compareTo(TStatus other)
compareTo
in interface Comparable<TStatus>
public TStatus._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<TStatus,TStatus._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<TStatus,TStatus._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<TStatus,TStatus._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2017 The Apache Software Foundation. All rights reserved.