org.apache.hive.service.cli
Class CLIServiceClient

java.lang.Object
  extended by org.apache.hive.service.cli.CLIServiceClient
All Implemented Interfaces:
ICLIService
Direct Known Subclasses:
EmbeddedCLIServiceClient, ThriftCLIServiceClient

public abstract class CLIServiceClient
extends Object
implements ICLIService

SQLServiceClient.


Constructor Summary
CLIServiceClient()
           
 
Method Summary
abstract  void cancelOperation(OperationHandle opHandle)
           
abstract  void closeOperation(OperationHandle opHandle)
           
abstract  void closeSession(SessionHandle sessionHandle)
           
abstract  OperationHandle executeStatement(SessionHandle sessionHandle, String statement, Map<String,String> confOverlay)
           
 RowSet fetchResults(OperationHandle opHandle)
           
abstract  RowSet fetchResults(OperationHandle opHandle, FetchOrientation orientation, long maxRows)
           
abstract  OperationHandle getCatalogs(SessionHandle sessionHandle)
           
abstract  OperationHandle getColumns(SessionHandle sessionHandle, String catalogName, String schemaName, String tableName, String columnName)
           
abstract  OperationHandle getFunctions(SessionHandle sessionHandle, String catalogName, String schemaName, String functionName)
           
abstract  GetInfoValue getInfo(SessionHandle sessionHandle, GetInfoType getInfoType)
           
abstract  OperationState getOperationStatus(OperationHandle opHandle)
           
abstract  TableSchema getResultSetMetadata(OperationHandle opHandle)
           
abstract  OperationHandle getSchemas(SessionHandle sessionHandle, String catalogName, String schemaName)
           
abstract  OperationHandle getTables(SessionHandle sessionHandle, String catalogName, String schemaName, String tableName, List<String> tableTypes)
           
abstract  OperationHandle getTableTypes(SessionHandle sessionHandle)
           
abstract  OperationHandle getTypeInfo(SessionHandle sessionHandle)
           
abstract  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

CLIServiceClient

public CLIServiceClient()
Method Detail

openSession

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

closeSession

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

getInfo

public abstract GetInfoValue getInfo(SessionHandle sessionHandle,
                                     GetInfoType getInfoType)
                              throws HiveSQLException
Specified by:
getInfo in interface ICLIService
Throws:
HiveSQLException

executeStatement

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

getTypeInfo

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

getCatalogs

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

getSchemas

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

getTables

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

getTableTypes

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

getColumns

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

getFunctions

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

getOperationStatus

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

cancelOperation

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

closeOperation

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

getResultSetMetadata

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

fetchResults

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

fetchResults

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


Copyright © 2013 The Apache Software Foundation