public class CLIService extends CompositeService implements ICLIService
CompositeService.CompositeServiceShutdownHookService.STATE| Constructor and Description |
|---|
CLIService() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelOperation(OperationHandle opHandle) |
void |
closeOperation(OperationHandle opHandle) |
void |
closeSession(SessionHandle sessionHandle) |
OperationHandle |
executeStatement(SessionHandle sessionHandle,
java.lang.String statement,
java.util.Map<java.lang.String,java.lang.String> confOverlay) |
OperationHandle |
executeStatementAsync(SessionHandle sessionHandle,
java.lang.String statement,
java.util.Map<java.lang.String,java.lang.String> confOverlay) |
RowSet |
fetchResults(OperationHandle opHandle) |
RowSet |
fetchResults(OperationHandle opHandle,
FetchOrientation orientation,
long maxRows) |
OperationHandle |
getCatalogs(SessionHandle sessionHandle) |
OperationHandle |
getColumns(SessionHandle sessionHandle,
java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String tableName,
java.lang.String columnName) |
java.lang.String |
getDelegationTokenFromMetaStore(java.lang.String owner) |
OperationHandle |
getFunctions(SessionHandle sessionHandle,
java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String functionName) |
GetInfoValue |
getInfo(SessionHandle sessionHandle,
GetInfoType getInfoType) |
OperationState |
getOperationStatus(OperationHandle opHandle) |
TableSchema |
getResultSetMetadata(OperationHandle opHandle) |
OperationHandle |
getSchemas(SessionHandle sessionHandle,
java.lang.String catalogName,
java.lang.String schemaName) |
OperationHandle |
getTables(SessionHandle sessionHandle,
java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String tableName,
java.util.List<java.lang.String> tableTypes) |
OperationHandle |
getTableTypes(SessionHandle sessionHandle) |
OperationHandle |
getTypeInfo(SessionHandle sessionHandle) |
void |
init(HiveConf hiveConf)
Initialize the service.
|
SessionHandle |
openSession(java.lang.String username,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.String> configuration) |
SessionHandle |
openSessionWithImpersonation(java.lang.String username,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.String> configuration,
java.lang.String delegationToken) |
void |
start()
Start the service.
|
void |
stop()
Stop the service.
|
addService, getServices, removeServicegetHiveConf, getName, getServiceState, getStartTime, register, unregisterpublic void init(HiveConf hiveConf)
AbstractServiceService.STATE.NOTINITED to Service.STATE.INITED unless the
operation failed and an exception was raised.init in interface Serviceinit in class CompositeServicepublic void start()
AbstractServiceService.STATE.INITED to Service.STATE.STARTED unless the
operation failed and an exception was raised.start in interface Servicestart in class CompositeServicepublic void stop()
AbstractServicestop in interface Servicestop in class CompositeServicepublic SessionHandle openSession(java.lang.String username, java.lang.String password, java.util.Map<java.lang.String,java.lang.String> configuration) throws HiveSQLException
openSession in interface ICLIServiceHiveSQLExceptionpublic SessionHandle openSessionWithImpersonation(java.lang.String username, java.lang.String password, java.util.Map<java.lang.String,java.lang.String> configuration, java.lang.String delegationToken) throws HiveSQLException
openSessionWithImpersonation in interface ICLIServiceHiveSQLExceptionpublic void closeSession(SessionHandle sessionHandle) throws HiveSQLException
closeSession in interface ICLIServiceHiveSQLExceptionpublic GetInfoValue getInfo(SessionHandle sessionHandle, GetInfoType getInfoType) throws HiveSQLException
getInfo in interface ICLIServiceHiveSQLExceptionpublic OperationHandle executeStatement(SessionHandle sessionHandle, java.lang.String statement, java.util.Map<java.lang.String,java.lang.String> confOverlay) throws HiveSQLException
executeStatement in interface ICLIServiceHiveSQLExceptionpublic OperationHandle executeStatementAsync(SessionHandle sessionHandle, java.lang.String statement, java.util.Map<java.lang.String,java.lang.String> confOverlay) throws HiveSQLException
executeStatementAsync in interface ICLIServiceHiveSQLExceptionpublic OperationHandle getTypeInfo(SessionHandle sessionHandle) throws HiveSQLException
getTypeInfo in interface ICLIServiceHiveSQLExceptionpublic OperationHandle getCatalogs(SessionHandle sessionHandle) throws HiveSQLException
getCatalogs in interface ICLIServiceHiveSQLExceptionpublic OperationHandle getSchemas(SessionHandle sessionHandle, java.lang.String catalogName, java.lang.String schemaName) throws HiveSQLException
getSchemas in interface ICLIServiceHiveSQLExceptionpublic OperationHandle getTables(SessionHandle sessionHandle, java.lang.String catalogName, java.lang.String schemaName, java.lang.String tableName, java.util.List<java.lang.String> tableTypes) throws HiveSQLException
getTables in interface ICLIServiceHiveSQLExceptionpublic OperationHandle getTableTypes(SessionHandle sessionHandle) throws HiveSQLException
getTableTypes in interface ICLIServiceHiveSQLExceptionpublic OperationHandle getColumns(SessionHandle sessionHandle, java.lang.String catalogName, java.lang.String schemaName, java.lang.String tableName, java.lang.String columnName) throws HiveSQLException
getColumns in interface ICLIServiceHiveSQLExceptionpublic OperationHandle getFunctions(SessionHandle sessionHandle, java.lang.String catalogName, java.lang.String schemaName, java.lang.String functionName) throws HiveSQLException
getFunctions in interface ICLIServiceHiveSQLExceptionpublic OperationState getOperationStatus(OperationHandle opHandle) throws HiveSQLException
getOperationStatus in interface ICLIServiceHiveSQLExceptionpublic void cancelOperation(OperationHandle opHandle) throws HiveSQLException
cancelOperation in interface ICLIServiceHiveSQLExceptionpublic void closeOperation(OperationHandle opHandle) throws HiveSQLException
closeOperation in interface ICLIServiceHiveSQLExceptionpublic TableSchema getResultSetMetadata(OperationHandle opHandle) throws HiveSQLException
getResultSetMetadata in interface ICLIServiceHiveSQLExceptionpublic RowSet fetchResults(OperationHandle opHandle, FetchOrientation orientation, long maxRows) throws HiveSQLException
fetchResults in interface ICLIServiceHiveSQLExceptionpublic RowSet fetchResults(OperationHandle opHandle) throws HiveSQLException
fetchResults in interface ICLIServiceHiveSQLExceptionpublic java.lang.String getDelegationTokenFromMetaStore(java.lang.String owner)
throws HiveSQLException,
java.lang.UnsupportedOperationException,
javax.security.auth.login.LoginException,
java.io.IOException
HiveSQLExceptionjava.lang.UnsupportedOperationExceptionjavax.security.auth.login.LoginExceptionjava.io.IOExceptionCopyright © 2012 The Apache Software Foundation