org.apache.hadoop.hive.ql.processors
Class CommandProcessorResponse

java.lang.Object
  extended by org.apache.hadoop.hive.ql.processors.CommandProcessorResponse

public class CommandProcessorResponse
extends Object

Encapsulates the basic response info returned by classes the implement the CommandProcessor interfaace. Typically errorMessage and SQLState will only be set if the responseCode is not 0.


Constructor Summary
CommandProcessorResponse(int responseCode)
           
CommandProcessorResponse(int responseCode, String errorMessage, String SQLState)
           
 
Method Summary
 String getErrorMessage()
           
 int getResponseCode()
           
 String getSQLState()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandProcessorResponse

public CommandProcessorResponse(int responseCode)

CommandProcessorResponse

public CommandProcessorResponse(int responseCode,
                                String errorMessage,
                                String SQLState)
Method Detail

getResponseCode

public int getResponseCode()

getErrorMessage

public String getErrorMessage()

getSQLState

public String getSQLState()


Copyright © 2011 The Apache Software Foundation