public class CLIService extends CompositeService implements ICLIService
CompositeService.CompositeServiceShutdownHook
Service.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, removeService
getHiveConf, getName, getServiceState, getStartTime, register, unregister
public void init(HiveConf hiveConf)
AbstractService
Service.STATE.NOTINITED
to Service.STATE.INITED
unless the
operation failed and an exception was raised.init
in interface Service
init
in class CompositeService
public void start()
AbstractService
Service.STATE.INITED
to Service.STATE.STARTED
unless the
operation failed and an exception was raised.start
in interface Service
start
in class CompositeService
public void stop()
AbstractService
stop
in interface Service
stop
in class CompositeService
public 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 ICLIService
HiveSQLException
public 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 ICLIService
HiveSQLException
public void closeSession(SessionHandle sessionHandle) throws HiveSQLException
closeSession
in interface ICLIService
HiveSQLException
public GetInfoValue getInfo(SessionHandle sessionHandle, GetInfoType getInfoType) throws HiveSQLException
getInfo
in interface ICLIService
HiveSQLException
public OperationHandle executeStatement(SessionHandle sessionHandle, java.lang.String statement, java.util.Map<java.lang.String,java.lang.String> confOverlay) throws HiveSQLException
executeStatement
in interface ICLIService
HiveSQLException
public OperationHandle executeStatementAsync(SessionHandle sessionHandle, java.lang.String statement, java.util.Map<java.lang.String,java.lang.String> confOverlay) throws HiveSQLException
executeStatementAsync
in interface ICLIService
HiveSQLException
public OperationHandle getTypeInfo(SessionHandle sessionHandle) throws HiveSQLException
getTypeInfo
in interface ICLIService
HiveSQLException
public OperationHandle getCatalogs(SessionHandle sessionHandle) throws HiveSQLException
getCatalogs
in interface ICLIService
HiveSQLException
public OperationHandle getSchemas(SessionHandle sessionHandle, java.lang.String catalogName, java.lang.String schemaName) throws HiveSQLException
getSchemas
in interface ICLIService
HiveSQLException
public 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 ICLIService
HiveSQLException
public OperationHandle getTableTypes(SessionHandle sessionHandle) throws HiveSQLException
getTableTypes
in interface ICLIService
HiveSQLException
public 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 ICLIService
HiveSQLException
public OperationHandle getFunctions(SessionHandle sessionHandle, java.lang.String catalogName, java.lang.String schemaName, java.lang.String functionName) throws HiveSQLException
getFunctions
in interface ICLIService
HiveSQLException
public OperationState getOperationStatus(OperationHandle opHandle) throws HiveSQLException
getOperationStatus
in interface ICLIService
HiveSQLException
public void cancelOperation(OperationHandle opHandle) throws HiveSQLException
cancelOperation
in interface ICLIService
HiveSQLException
public void closeOperation(OperationHandle opHandle) throws HiveSQLException
closeOperation
in interface ICLIService
HiveSQLException
public TableSchema getResultSetMetadata(OperationHandle opHandle) throws HiveSQLException
getResultSetMetadata
in interface ICLIService
HiveSQLException
public RowSet fetchResults(OperationHandle opHandle, FetchOrientation orientation, long maxRows) throws HiveSQLException
fetchResults
in interface ICLIService
HiveSQLException
public RowSet fetchResults(OperationHandle opHandle) throws HiveSQLException
fetchResults
in interface ICLIService
HiveSQLException
public java.lang.String getDelegationTokenFromMetaStore(java.lang.String owner) throws HiveSQLException, java.lang.UnsupportedOperationException, javax.security.auth.login.LoginException, java.io.IOException
HiveSQLException
java.lang.UnsupportedOperationException
javax.security.auth.login.LoginException
java.io.IOException
Copyright © 2012 The Apache Software Foundation