Examples of TGetCatalogsResp


Examples of org.apache.hive.service.cli.thrift.TGetCatalogsResp

  public String getCatalogTerm() throws SQLException {
    return "instance";
  }

  public ResultSet getCatalogs() throws SQLException {
    TGetCatalogsResp catalogResp;

    try {
      catalogResp = client.GetCatalogs(new TGetCatalogsReq(sessHandle));
    } catch (TException e) {
      throw new SQLException(e.getMessage(), "08S01", e);
    }
    Utils.verifySuccess(catalogResp.getStatus());

    return new HiveQueryResultSet.Builder()
    .setClient(client)
    .setSessionHandle(sessHandle)
    .setStmtHandle(catalogResp.getOperationHandle())
    .build();
  }
View Full Code Here

Examples of org.apache.hive.service.cli.thrift.TGetCatalogsResp

  public String getCatalogTerm() throws SQLException {
    return "instance";
  }

  public ResultSet getCatalogs() throws SQLException {
    TGetCatalogsResp catalogResp;

    try {
      catalogResp = client.GetCatalogs(new TGetCatalogsReq(sessHandle));
    } catch (TException e) {
      throw new SQLException(e.getMessage(), "08S01", e);
    }
    Utils.verifySuccess(catalogResp.getStatus());

    return new HiveQueryResultSet.Builder(connection)
    .setClient(client)
    .setSessionHandle(sessHandle)
    .setStmtHandle(catalogResp.getOperationHandle())
    .build();
  }
View Full Code Here

Examples of org.apache.hive.service.cli.thrift.TGetCatalogsResp

  public String getCatalogTerm() throws SQLException {
    return "instance";
  }

  public ResultSet getCatalogs() throws SQLException {
    TGetCatalogsResp catalogResp;

    try {
      catalogResp = client.GetCatalogs(new TGetCatalogsReq(sessHandle));
    } catch (TException e) {
      throw new SQLException(e.getMessage(), "08S01", e);
    }
    Utils.verifySuccess(catalogResp.getStatus());

    return new HiveQueryResultSet.Builder(connection)
    .setClient(client)
    .setSessionHandle(sessHandle)
    .setStmtHandle(catalogResp.getOperationHandle())
    .build();
  }
View Full Code Here

Examples of org.apache.hive.service.cli.thrift.TGetCatalogsResp

  public String getCatalogTerm() throws SQLException {
    return "instance";
  }

  public ResultSet getCatalogs() throws SQLException {
    TGetCatalogsResp catalogResp;

    try {
      catalogResp = client.GetCatalogs(new TGetCatalogsReq(sessHandle));
    } catch (TException e) {
      throw new SQLException(e.getMessage(), "08S01");
    }
    Utils.verifySuccess(catalogResp.getStatus());

    return new HiveQueryResultSet.Builder()
    .setClient(client)
    .setSessionHandle(sessHandle)
    .setStmtHandle(catalogResp.getOperationHandle())
    .build();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.