org.apache.hadoop.hive.service
Class HiveServerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.thrift.TException
org.apache.hadoop.hive.service.HiveServerException
- All Implemented Interfaces:
- Serializable, Cloneable, Comparable<HiveServerException>, org.apache.thrift.TBase<HiveServerException,HiveServerException._Fields>
public class HiveServerException
- extends org.apache.thrift.TException
- implements org.apache.thrift.TBase<HiveServerException,HiveServerException._Fields>, Serializable, Cloneable
- See Also:
- Serialized Form
Nested Class Summary |
static class |
HiveServerException._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them. |
metaDataMap
public static final Map<HiveServerException._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
HiveServerException
public HiveServerException()
HiveServerException
public HiveServerException(String message,
int errorCode,
String SQLState)
HiveServerException
public HiveServerException(HiveServerException other)
- Performs a deep copy on other.
deepCopy
public HiveServerException deepCopy()
- Specified by:
deepCopy
in interface org.apache.thrift.TBase<HiveServerException,HiveServerException._Fields>
clear
public void clear()
- Specified by:
clear
in interface org.apache.thrift.TBase<HiveServerException,HiveServerException._Fields>
getMessage
public String getMessage()
- Overrides:
getMessage
in class Throwable
setMessage
public void setMessage(String message)
unsetMessage
public void unsetMessage()
isSetMessage
public boolean isSetMessage()
- Returns true if field message is set (has been assigned a value) and false otherwise
setMessageIsSet
public void setMessageIsSet(boolean value)
getErrorCode
public int getErrorCode()
setErrorCode
public void setErrorCode(int errorCode)
unsetErrorCode
public void unsetErrorCode()
isSetErrorCode
public boolean isSetErrorCode()
- Returns true if field errorCode is set (has been assigned a value) and false otherwise
setErrorCodeIsSet
public void setErrorCodeIsSet(boolean value)
getSQLState
public String getSQLState()
setSQLState
public void setSQLState(String SQLState)
unsetSQLState
public void unsetSQLState()
isSetSQLState
public boolean isSetSQLState()
- Returns true if field SQLState is set (has been assigned a value) and false otherwise
setSQLStateIsSet
public void setSQLStateIsSet(boolean value)
setFieldValue
public void setFieldValue(HiveServerException._Fields field,
Object value)
- Specified by:
setFieldValue
in interface org.apache.thrift.TBase<HiveServerException,HiveServerException._Fields>
getFieldValue
public Object getFieldValue(HiveServerException._Fields field)
- Specified by:
getFieldValue
in interface org.apache.thrift.TBase<HiveServerException,HiveServerException._Fields>
isSet
public boolean isSet(HiveServerException._Fields field)
- Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
- Specified by:
isSet
in interface org.apache.thrift.TBase<HiveServerException,HiveServerException._Fields>
equals
public boolean equals(Object that)
- Overrides:
equals
in class Object
equals
public boolean equals(HiveServerException that)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
compareTo
public int compareTo(HiveServerException other)
- Specified by:
compareTo
in interface Comparable<HiveServerException>
fieldForId
public HiveServerException._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interface org.apache.thrift.TBase<HiveServerException,HiveServerException._Fields>
read
public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
- Specified by:
read
in interface org.apache.thrift.TBase<HiveServerException,HiveServerException._Fields>
- Throws:
org.apache.thrift.TException
write
public void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
- Specified by:
write
in interface org.apache.thrift.TBase<HiveServerException,HiveServerException._Fields>
- Throws:
org.apache.thrift.TException
toString
public String toString()
- Overrides:
toString
in class Throwable
validate
public void validate()
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
Copyright © 2013 The Apache Software Foundation