Package com.google.api.services.bigquery.model

Examples of com.google.api.services.bigquery.model.DatasetList


  // These BigQuery calls are just here as examples
  log.info("Sending BigQuery request");
    Datasets.List datasetRequest;
  try {
    datasetRequest = bigquery.datasets().list("publicdata");
    DatasetList datasetList = datasetRequest.execute();
    log.info("Got BigQuery request");

      String list = datasetList.toPrettyString();
      log.info("datasetList: " + list);
  } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
  }
View Full Code Here


String getDatasets(String projectid) {
  String r = null;
  try {
    Bigquery.Datasets.List datasetrequest = bigquery.datasets().list(projectid);
      DatasetList datasetlist = datasetrequest.execute();
      String list = datasetlist.toPrettyString();
      log.info("DatasetList list: " + list);
      List<com.google.api.services.bigquery.model.DatasetList.Datasets> datasets = datasetlist.getDatasets();
      if (datasets != null) {
        for (com.google.api.services.bigquery.model.DatasetList.Datasets d : datasets) {
          String s = d.toPrettyString();
          log.info("Dataset: " + s);
          String name = d.getFriendlyName(); // null
View Full Code Here

TOP

Related Classes of com.google.api.services.bigquery.model.DatasetList

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.