/** * Execute statement asynchronously on the server. This is a non-blocking call */ @Override public OperationHandle executeStatementAsync(SessionHandle sessionHandle, String statement, Map<String, String> confOverlay) throws HiveSQLException { HiveSession session = sessionManager.getSession(sessionHandle); // need to reset the monitor, as operation handle is not available down stream, Ideally the // monitor should be associated with the operation handle. session.getSessionState().updateProgressMonitor(null); OperationHandle opHandle = session.executeStatementAsync(statement, confOverlay); LOG.debug(sessionHandle + ": executeStatementAsync()"); return opHandle; }
/** * Execute statement asynchronously on the server with a timeout. This is a non-blocking call */ @Override public OperationHandle executeStatementAsync(SessionHandle sessionHandle, String statement, Map<String, String> confOverlay, long queryTimeout) throws HiveSQLException { HiveSession session = sessionManager.getSession(sessionHandle); // need to reset the monitor, as operation handle is not available down stream, Ideally the // monitor should be associated with the operation handle. session.getSessionState().updateProgressMonitor(null); OperationHandle opHandle = session.executeStatementAsync(statement, confOverlay, queryTimeout); LOG.debug(sessionHandle + ": executeStatementAsync()"); return opHandle; }
assertNotNull(sessionHandle); HiveSession session = service.getSessionManager().getSession(sessionHandle); OperationHandle op1 = session.executeStatementAsync("show databases", null); assertNotNull(op1); client.closeTransport(); OperationHandle op2 = session.executeStatementAsync("show databases", null); assertNotNull(op2);
@Override public OperationHandle executeStatementAsync(SessionHandle sessionHandle, String statement, Map<String, String> confOverlay) throws HiveSQLException { OperationHandle opHandle = sessionManager.getSession(sessionHandle) .executeStatementAsync(statement, confOverlay); LOG.debug(sessionHandle + ": executeStatementAsync()"); return opHandle; }
@Override public OperationHandle executeStatementAsync(SessionHandle sessionHandle, String statement, Map<String, String> confOverlay) throws HiveSQLException { OperationHandle opHandle = sessionManager.getSession(sessionHandle) .executeStatementAsync(statement, confOverlay); LOG.debug(sessionHandle + ": executeStatementAsync()"); return opHandle; }
@Override public OperationHandle executeStatementAsync(SessionHandle sessionHandle, String statement, Map<String, String> confOverlay) throws HiveSQLException { OperationHandle opHandle = sessionManager.getSession(sessionHandle) .executeStatementAsync(statement, confOverlay); LOG.debug(sessionHandle + ": executeStatementAsync()"); return opHandle; }
@Override public OperationHandle executeStatementAsync(SessionHandle sessionHandle, String statement, Map<String, String> confOverlay) throws HiveSQLException { OperationHandle opHandle = sessionManager.getSession(sessionHandle) .executeStatementAsync(statement, confOverlay); LOG.debug(sessionHandle + ": executeStatementAsync()"); return opHandle; }
/** * Execute statement asynchronously on the server. This is a non-blocking call */ @Override public OperationHandle executeStatementAsync(SessionHandle sessionHandle, String statement, Map<String, String> confOverlay) throws HiveSQLException { HiveSession session = sessionManager.getSession(sessionHandle); // need to reset the monitor, as operation handle is not available down stream, Ideally the // monitor should be associated with the operation handle. session.getSessionState().updateProgressMonitor(null); OperationHandle opHandle = session.executeStatementAsync(statement, confOverlay); LOG.debug(sessionHandle + ": executeStatementAsync()"); return opHandle; }
/** * Execute statement asynchronously on the server with a timeout. This is a non-blocking call */ @Override public OperationHandle executeStatementAsync(SessionHandle sessionHandle, String statement, Map<String, String> confOverlay, long queryTimeout) throws HiveSQLException { HiveSession session = sessionManager.getSession(sessionHandle); // need to reset the monitor, as operation handle is not available down stream, Ideally the // monitor should be associated with the operation handle. session.getSessionState().updateProgressMonitor(null); OperationHandle opHandle = session.executeStatementAsync(statement, confOverlay, queryTimeout); LOG.debug(sessionHandle + ": executeStatementAsync()"); return opHandle; }