Package co.cask.cdap.explore.service

Examples of co.cask.cdap.explore.service.TableNotFoundException


                           tableInfo.getSd().getInputFormat(), tableInfo.getSd().getOutputFormat(),
                           tableInfo.getSd().isCompressed(), tableInfo.getSd().getNumBuckets(),
                           tableInfo.getSd().getSerdeInfo().getSerializationLib(),
                           tableInfo.getSd().getSerdeInfo().getParameters(), isDatasetTable);
    } catch (NoSuchObjectException e) {
      throw new TableNotFoundException(e);
    } catch (TException e) {
      throw new ExploreException(e);
    }
  }
View Full Code Here


    String tableNamePrefix = (database != null) ? database + "." : "";
    HttpResponse response = doGet(String.format("data/explore/tables/%s/info", tableNamePrefix + table));
    if (HttpResponseStatus.OK.getCode() == response.getResponseCode()) {
      return parseJson(response, TableInfo.class);
    } else if (HttpResponseStatus.NOT_FOUND.getCode() == response.getResponseCode()) {
      throw new TableNotFoundException("Table " + tableNamePrefix + table + " not found.");
    }
    throw new ExploreException("Cannot get the schema of table " + tableNamePrefix + table +
                               ". Reason: " + getDetails(response));
  }
View Full Code Here

TOP

Related Classes of co.cask.cdap.explore.service.TableNotFoundException

Copyright © 2018 www.massapicom. 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.