Tabnine Logo
TableList
Code IndexAdd Tabnine to your IDE (free)

How to use
TableList
in
com.google.api.services.bigquery.model

Best Java code snippets using com.google.api.services.bigquery.model.TableList (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: googleapis/google-cloud-java

    .setPageToken(Option.PAGE_TOKEN.getString(options))
    .execute();
Iterable<TableList.Tables> tables = tableList.getTables();
return Tuple.of(
  tableList.getNextPageToken(),
  Iterables.transform(
    tables != null ? tables : ImmutableList.<TableList.Tables>of(),
origin: stackoverflow.com

 private static void listTables(Bigquery service, String projectNumber, String datasetId) throws IOException {

  Bigquery.Tables.List listTablesReply = service.tables().list(projectNumber, datasetId);
  TableList tableList = listTablesReply.execute();

  if (tableList.getTables() != null) {

   List tables = tableList.getTables();

   System.out.println("Tables list:");

   for (TableList.Tables table : tables) {
     System.out.format("%s\n", table.getId());
   }
  }
}
origin: org.apache.beam/beam-sdks-java-io-google-cloud-platform

public void deleteDataset(String projectId, String datasetId) {
 try {
  TableList tables = bqClient.tables().list(projectId, datasetId).execute();
  for (Tables table : tables.getTables()) {
   this.deleteTable(projectId, datasetId, table.getTableReference().getTableId());
  }
 } catch (Exception e) {
  LOG.debug("Exceptions caught when listing all tables: " + e.getMessage());
 }
 try {
  bqClient.datasets().delete(projectId, datasetId).execute();
  LOG.info("Successfully deleted dataset: " + datasetId);
 } catch (Exception e) {
  LOG.debug("Exceptions caught when deleting dataset: " + e.getMessage());
 }
}
origin: io.digdag/digdag-standards

private void deleteTables(String projectId, String datasetId)
    throws IOException
{
  Bigquery.Tables.List list = client.tables().list(projectId, datasetId);
  TableList tableList;
  do {
    tableList = list.execute();
    List<TableList.Tables> tables = tableList.getTables();
    if (tables != null) {
      for (TableList.Tables table : tables) {
        deleteTable(projectId, datasetId, table.getTableReference().getTableId());
      }
    }
  }
  while (tableList.getNextPageToken() != null);
}
origin: com.google.cloud/google-cloud-bigquery

    .setPageToken(Option.PAGE_TOKEN.getString(options))
    .execute();
Iterable<TableList.Tables> tables = tableList.getTables();
return Tuple.of(
  tableList.getNextPageToken(),
  Iterables.transform(
    tables != null ? tables : ImmutableList.<TableList.Tables>of(),
origin: com.google.cloud/gcloud-java-bigquery

@Override
public Tuple<String, Iterable<Table>> listTables(String datasetId, Map<Option, ?> options) {
 try {
  TableList tableList = bigquery.tables()
    .list(this.options.projectId(), datasetId)
    .setMaxResults(MAX_RESULTS.getLong(options))
    .setPageToken(PAGE_TOKEN.getString(options))
    .execute();
  Iterable<TableList.Tables> tables = tableList.getTables();
  return Tuple.of(tableList.getNextPageToken(),
    Iterables.transform(tables != null ? tables : ImmutableList.<TableList.Tables>of(),
      new Function<TableList.Tables, Table>() {
       @Override
       public Table apply(TableList.Tables tablePb) {
        return new Table()
          .setFriendlyName(tablePb.getFriendlyName())
          .setId(tablePb.getId())
          .setKind(tablePb.getKind())
          .setTableReference(tablePb.getTableReference())
          .setType(tablePb.getType());
       }
      }));
 } catch (IOException ex) {
  throw translate(ex);
 }
}
origin: com.google.gcloud/gcloud-java-bigquery

@Override
public Tuple<String, Iterable<Table>> listTables(String datasetId, Map<Option, ?> options) {
 try {
  TableList tableList = bigquery.tables()
    .list(this.options.projectId(), datasetId)
    .setMaxResults(MAX_RESULTS.getLong(options))
    .setPageToken(PAGE_TOKEN.getString(options))
    .execute();
  Iterable<TableList.Tables> tables = tableList.getTables();
  return Tuple.of(tableList.getNextPageToken(),
    Iterables.transform(tables != null ? tables : ImmutableList.<TableList.Tables>of(),
      new Function<TableList.Tables, Table>() {
       @Override
       public Table apply(TableList.Tables tablePb) {
        return new Table()
          .setFriendlyName(tablePb.getFriendlyName())
          .setId(tablePb.getId())
          .setKind(tablePb.getKind())
          .setTableReference(tablePb.getTableReference())
          .setType(tablePb.getType());
       }
      }));
 } catch (IOException ex) {
  throw translate(ex);
 }
}
com.google.api.services.bigquery.modelTableList

Javadoc

Model definition for TableList.

This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the BigQuery API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json

Most used methods

  • getTables
    Tables in the requested dataset.
  • getNextPageToken
    A token to request the next page of results.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JFrame (javax.swing)
  • JList (javax.swing)
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now