Search in sources :

Example 1 with TOperationHandle

use of org.apache.hive.service.rpc.thrift.TOperationHandle in project hive by apache.

the class OperationHandle method toTOperationHandle.

public TOperationHandle toTOperationHandle() {
    TOperationHandle tOperationHandle = new TOperationHandle();
    tOperationHandle.setOperationId(getHandleIdentifier().toTHandleIdentifier());
    tOperationHandle.setOperationType(opType.toTOperationType());
    tOperationHandle.setHasResultSet(hasResultSet);
    return tOperationHandle;
}
Also used : TOperationHandle(org.apache.hive.service.rpc.thrift.TOperationHandle)

Example 2 with TOperationHandle

use of org.apache.hive.service.rpc.thrift.TOperationHandle in project hive by apache.

the class CLIService method getQueryId.

@Override
public String getQueryId(TOperationHandle opHandle) throws HiveSQLException {
    Operation operation = sessionManager.getOperationManager().getOperation(new OperationHandle(opHandle));
    final String queryId = operation.getParentSession().getHiveConf().getVar(ConfVars.HIVEQUERYID);
    LOG.debug(opHandle + ": getQueryId() " + queryId);
    return queryId;
}
Also used : Operation(org.apache.hive.service.cli.operation.Operation) TOperationHandle(org.apache.hive.service.rpc.thrift.TOperationHandle)

Aggregations

TOperationHandle (org.apache.hive.service.rpc.thrift.TOperationHandle)2 Operation (org.apache.hive.service.cli.operation.Operation)1