public ResultSet getFunctions(String catalogName, String schemaPattern, String functionNamePattern) throws SQLException { TGetFunctionsResp funcResp; TGetFunctionsReq getFunctionsReq = new TGetFunctionsReq(); getFunctionsReq.setSessionHandle(sessHandle); getFunctionsReq.setCatalogName(catalogName); getFunctionsReq.setSchemaName(schemaPattern); getFunctionsReq.setFunctionName(functionNamePattern); try { funcResp = client.GetFunctions(getFunctionsReq); } catch (TException e) { throw new SQLException(e.getMessage(), "08S01", e); } Utils.verifySuccess(funcResp.getStatus()); return new HiveQueryResultSet.Builder(connection) .setClient(client) .setSessionHandle(sessHandle) .setStmtHandle(funcResp.getOperationHandle()) .build(); }
public ResultSet getFunctions(String catalogName, String schemaPattern, String functionNamePattern) throws SQLException { TGetFunctionsResp funcResp; TGetFunctionsReq getFunctionsReq = new TGetFunctionsReq(); getFunctionsReq.setSessionHandle(sessHandle); getFunctionsReq.setCatalogName(catalogName); getFunctionsReq.setSchemaName(schemaPattern); getFunctionsReq.setFunctionName(functionNamePattern); try { funcResp = client.GetFunctions(getFunctionsReq); } catch (TException e) { throw new SQLException(e.getMessage(), "08S01", e); } Utils.verifySuccess(funcResp.getStatus()); return new HiveQueryResultSet.Builder(connection) .setClient(client) .setSessionHandle(sessHandle) .setStmtHandle(funcResp.getOperationHandle()) .build(); }
@Override public OperationHandle getFunctions(SessionHandle sessionHandle, String catalogName, String schemaName, String functionName) throws HiveSQLException { try { TGetFunctionsReq req = new TGetFunctionsReq(sessionHandle.toTSessionHandle(), functionName); req.setCatalogName(catalogName); req.setSchemaName(schemaName); TGetFunctionsResp resp = cliService.GetFunctions(req); checkStatus(resp.getStatus()); TProtocolVersion protocol = sessionHandle.getProtocolVersion(); return new OperationHandle(resp.getOperationHandle(), protocol); } catch (HiveSQLException e) { throw e; } catch (Exception e) { throw new HiveSQLException(e); } }
@Override public OperationHandle getFunctions(SessionHandle sessionHandle, String catalogName, String schemaName, String functionName) throws HiveSQLException { try { TGetFunctionsReq req = new TGetFunctionsReq(sessionHandle.toTSessionHandle(), functionName); req.setCatalogName(catalogName); req.setSchemaName(schemaName); TGetFunctionsResp resp = cliService.GetFunctions(req); checkStatus(resp.getStatus()); TProtocolVersion protocol = sessionHandle.getProtocolVersion(); return new OperationHandle(resp.getOperationHandle(), protocol); } catch (HiveSQLException e) { throw e; } catch (Exception e) { throw new HiveSQLException(e); } }
@Override public OperationHandle getFunctions(SessionHandle sessionHandle, String catalogName, String schemaName, String functionName) throws HiveSQLException { try { TGetFunctionsReq req = new TGetFunctionsReq(sessionHandle.toTSessionHandle(), functionName); req.setCatalogName(catalogName); req.setSchemaName(schemaName); TGetFunctionsResp resp = cliService.GetFunctions(req); checkStatus(resp.getStatus()); TProtocolVersion protocol = sessionHandle.getProtocolVersion(); return new OperationHandle(resp.getOperationHandle(), protocol); } catch (HiveSQLException e) { throw e; } catch (Exception e) { throw new HiveSQLException(e); } }
@Override public OperationHandle getFunctions(SessionHandle sessionHandle, String catalogName, String schemaName, String functionName) throws HiveSQLException { try { TGetFunctionsReq req = new TGetFunctionsReq(sessionHandle.toTSessionHandle(), functionName); req.setCatalogName(catalogName); req.setSchemaName(schemaName); TGetFunctionsResp resp = cliService.GetFunctions(req); checkStatus(resp.getStatus()); TProtocolVersion protocol = sessionHandle.getProtocolVersion(); return new OperationHandle(resp.getOperationHandle(), protocol); } catch (HiveSQLException e) { throw e; } catch (Exception e) { throw new HiveSQLException(e); } }
public GetFunctions_result getResult(I iface, GetFunctions_args args) throws org.apache.thrift.TException { GetFunctions_result result = new GetFunctions_result(); result.success = iface.GetFunctions(args.req); return result; } }
public GetFunctions_result getResult(I iface, GetFunctions_args args) throws org.apache.thrift.TException { GetFunctions_result result = new GetFunctions_result(); result.success = iface.GetFunctions(args.req); return result; } }
public GetFunctions_result getResult(I iface, GetFunctions_args args) throws org.apache.thrift.TException { GetFunctions_result result = new GetFunctions_result(); result.success = iface.GetFunctions(args.req); return result; } }
public GetFunctions_result getResult(I iface, GetFunctions_args args) throws org.apache.thrift.TException { GetFunctions_result result = new GetFunctions_result(); result.success = iface.GetFunctions(args.req); return result; } }