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)
           
CommandProcessorResponse(int responseCode, String errorMessage, String SQLState, org.apache.hadoop.hive.metastore.api.Schema schema)
           
 
Method Summary
 String getErrorMessage()
           
 int getResponseCode()
           
 org.apache.hadoop.hive.metastore.api.Schema getSchema()
           
 String getSQLState()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandProcessorResponse

public CommandProcessorResponse(int responseCode)

CommandProcessorResponse

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

CommandProcessorResponse

public CommandProcessorResponse(int responseCode,
                                String errorMessage,
                                String SQLState,
                                org.apache.hadoop.hive.metastore.api.Schema schema)
Method Detail

getResponseCode

public int getResponseCode()

getErrorMessage

public String getErrorMessage()

getSQLState

public String getSQLState()

getSchema

public org.apache.hadoop.hive.metastore.api.Schema getSchema()


Copyright © 2014 The Apache Software Foundation. All rights reserved.