org.apache.hive.service.cli.thrift
Class ThriftCLIServiceClient

java.lang.Object
  extended by org.apache.hive.service.cli.CLIServiceClient
      extended by org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
All Implemented Interfaces:
ICLIService

public class ThriftCLIServiceClient
extends CLIServiceClient

ThriftCLIServiceClient.


Constructor Summary
ThriftCLIServiceClient(TCLIService.Iface sqlService)
           
 
Method Summary
 void cancelOperation(OperationHandle opHandle)
           
 void checkStatus(TStatus status)
           
 void closeOperation(OperationHandle opHandle)
           
 void closeSession(SessionHandle sessionHandle)
           
 OperationHandle executeStatement(SessionHandle sessionHandle, String statement, Map<String,String> confOverlay)
           
 RowSet fetchResults(OperationHandle opHandle)
           
 RowSet fetchResults(OperationHandle opHandle, FetchOrientation orientation, long maxRows)
           
 OperationHandle getCatalogs(SessionHandle sessionHandle)
           
 OperationHandle getColumns(SessionHandle sessionHandle, String catalogName, String schemaName, String tableName, String columnName)
           
 OperationHandle getFunctions(SessionHandle sessionHandle, String catalogName, String schemaName, String functionName)
           
 GetInfoValue getInfo(SessionHandle sessionHandle, GetInfoType infoType)
           
 OperationState getOperationStatus(OperationHandle opHandle)
           
 TableSchema getResultSetMetadata(OperationHandle opHandle)
           
 OperationHandle getSchemas(SessionHandle sessionHandle, String catalogName, String schemaName)
           
 OperationHandle getTables(SessionHandle sessionHandle, String catalogName, String schemaName, String tableName, List<String> tableTypes)
           
 OperationHandle getTableTypes(SessionHandle sessionHandle)
           
 OperationHandle getTypeInfo(SessionHandle sessionHandle)
           
 SessionHandle openSession(String username, String password, Map<String,String> configuration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThriftCLIServiceClient

public ThriftCLIServiceClient(TCLIService.Iface sqlService)
Method Detail

checkStatus

public void checkStatus(TStatus status)
                 throws HiveSQLException
Throws:
HiveSQLException

openSession

public SessionHandle openSession(String username,
                                 String password,
                                 Map<String,String> configuration)
                          throws HiveSQLException
Specified by:
openSession in interface ICLIService
Specified by:
openSession in class CLIServiceClient
Throws:
HiveSQLException

closeSession

public void closeSession(SessionHandle sessionHandle)
                  throws HiveSQLException
Specified by:
closeSession in interface ICLIService
Specified by:
closeSession in class CLIServiceClient
Throws:
HiveSQLException

getInfo

public GetInfoValue getInfo(SessionHandle sessionHandle,
                            GetInfoType infoType)
                     throws HiveSQLException
Specified by:
getInfo in interface ICLIService
Specified by:
getInfo in class CLIServiceClient
Throws:
HiveSQLException

executeStatement

public OperationHandle executeStatement(SessionHandle sessionHandle,
                                        String statement,
                                        Map<String,String> confOverlay)
                                 throws HiveSQLException
Specified by:
executeStatement in interface ICLIService
Specified by:
executeStatement in class CLIServiceClient
Throws:
HiveSQLException

getTypeInfo

public OperationHandle getTypeInfo(SessionHandle sessionHandle)
                            throws HiveSQLException
Specified by:
getTypeInfo in interface ICLIService
Specified by:
getTypeInfo in class CLIServiceClient
Throws:
HiveSQLException

getCatalogs

public OperationHandle getCatalogs(SessionHandle sessionHandle)
                            throws HiveSQLException
Specified by:
getCatalogs in interface ICLIService
Specified by:
getCatalogs in class CLIServiceClient
Throws:
HiveSQLException

getSchemas

public OperationHandle getSchemas(SessionHandle sessionHandle,
                                  String catalogName,
                                  String schemaName)
                           throws HiveSQLException
Specified by:
getSchemas in interface ICLIService
Specified by:
getSchemas in class CLIServiceClient
Throws:
HiveSQLException

getTables

public OperationHandle getTables(SessionHandle sessionHandle,
                                 String catalogName,
                                 String schemaName,
                                 String tableName,
                                 List<String> tableTypes)
                          throws HiveSQLException
Specified by:
getTables in interface ICLIService
Specified by:
getTables in class CLIServiceClient
Throws:
HiveSQLException

getTableTypes

public OperationHandle getTableTypes(SessionHandle sessionHandle)
                              throws HiveSQLException
Specified by:
getTableTypes in interface ICLIService
Specified by:
getTableTypes in class CLIServiceClient
Throws:
HiveSQLException

getColumns

public OperationHandle getColumns(SessionHandle sessionHandle,
                                  String catalogName,
                                  String schemaName,
                                  String tableName,
                                  String columnName)
                           throws HiveSQLException
Specified by:
getColumns in interface ICLIService
Specified by:
getColumns in class CLIServiceClient
Throws:
HiveSQLException

getFunctions

public OperationHandle getFunctions(SessionHandle sessionHandle,
                                    String catalogName,
                                    String schemaName,
                                    String functionName)
                             throws HiveSQLException
Specified by:
getFunctions in interface ICLIService
Specified by:
getFunctions in class CLIServiceClient
Throws:
HiveSQLException

getOperationStatus

public OperationState getOperationStatus(OperationHandle opHandle)
                                  throws HiveSQLException
Specified by:
getOperationStatus in interface ICLIService
Specified by:
getOperationStatus in class CLIServiceClient
Throws:
HiveSQLException

cancelOperation

public void cancelOperation(OperationHandle opHandle)
                     throws HiveSQLException
Specified by:
cancelOperation in interface ICLIService
Specified by:
cancelOperation in class CLIServiceClient
Throws:
HiveSQLException

closeOperation

public void closeOperation(OperationHandle opHandle)
                    throws HiveSQLException
Specified by:
closeOperation in interface ICLIService
Specified by:
closeOperation in class CLIServiceClient
Throws:
HiveSQLException

getResultSetMetadata

public TableSchema getResultSetMetadata(OperationHandle opHandle)
                                 throws HiveSQLException
Specified by:
getResultSetMetadata in interface ICLIService
Specified by:
getResultSetMetadata in class CLIServiceClient
Throws:
HiveSQLException

fetchResults

public RowSet fetchResults(OperationHandle opHandle,
                           FetchOrientation orientation,
                           long maxRows)
                    throws HiveSQLException
Specified by:
fetchResults in interface ICLIService
Specified by:
fetchResults in class CLIServiceClient
Throws:
HiveSQLException

fetchResults

public RowSet fetchResults(OperationHandle opHandle)
                    throws HiveSQLException
Specified by:
fetchResults in interface ICLIService
Overrides:
fetchResults in class CLIServiceClient
Throws:
HiveSQLException


Copyright © 2013 The Apache Software Foundation