Codota Logo
Bigquery$Tables$Get.execute
Code IndexAdd Codota to your IDE (free)

How to use
execute
method
in
com.google.api.services.bigquery.Bigquery$Tables$Get

Best Java code snippets using com.google.api.services.bigquery.Bigquery$Tables$Get.execute (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: org.apache.beam/beam-sdks-java-io-google-cloud-platform

private void onTableGet(Table table) throws IOException {
 when(mockClient.tables()).thenReturn(mockTables);
 when(mockTables.get(anyString(), anyString(), anyString())).thenReturn(mockTablesGet);
 when(mockTablesGet.execute()).thenReturn(table);
}
origin: org.apache.beam/beam-sdks-java-io-google-cloud-platform

private void verifyTableGet() throws IOException {
 verify(mockClient).tables();
 verify(mockTables).get("project", "dataset", "table");
 verify(mockTablesGet, atLeastOnce()).execute();
}
origin: StreakYC/mache

boolean found = true;
try {
  bigquery.tables().get(exporterConfig.getBigqueryProjectId(), exporterConfig.getBigqueryDatasetId(), kind).execute();
origin: googleapis/google-cloud-java

@Override
public Table getTable(
  String projectId, String datasetId, String tableId, Map<Option, ?> options) {
 try {
  return bigquery
    .tables()
    .get(projectId, datasetId, tableId)
    .setFields(Option.FIELDS.getString(options))
    .execute();
 } catch (IOException ex) {
  BigQueryException serviceException = translate(ex);
  if (serviceException.getCode() == HTTP_NOT_FOUND) {
   return null;
  }
  throw serviceException;
 }
}
origin: com.google.cloud.bigdataoss/bigquery-connector

/**
 * Gets the specified table resource by table ID. This method does not return the data in the
 * table, it only returns the table resource, which describes the structure of this table.
 *
 * @param tableRef The BigQuery table reference.
 * @return The table resource, which describes the structure of this table.
 * @throws IOException
 */
public Table getTable(TableReference tableRef)
  throws IOException {
 Bigquery.Tables.Get getTablesReply = service.tables().get(
   tableRef.getProjectId(), tableRef.getDatasetId(), tableRef.getTableId());
 return getTablesReply.execute();
}
origin: org.apache.beam/beam-sdks-java-io-google-cloud-platform

private TableSchema getSchema(Bigquery bq) {
 try {
  return bq.tables()
    .get(
      pipelineOptions.getProject(),
      pipelineOptions.getTargetDataset(),
      table.getTableReference().getTableId())
    .execute()
    .getSchema();
 } catch (IOException e) {
  throw new RuntimeException(e);
 }
}
origin: com.google.cloud/gcloud-java-bigquery

@Override
public Table getTable(String datasetId, String tableId, Map<Option, ?> options) {
 try {
  return bigquery.tables()
    .get(this.options.projectId(), datasetId, tableId)
    .setFields(FIELDS.getString(options))
    .execute();
 } catch (IOException ex) {
  BigQueryException serviceException = translate(ex);
  if (serviceException.code() == HTTP_NOT_FOUND) {
   return null;
  }
  throw serviceException;
 }
}
origin: com.google.gcloud/gcloud-java-bigquery

@Override
public Table getTable(String datasetId, String tableId, Map<Option, ?> options) {
 try {
  return bigquery.tables()
    .get(this.options.projectId(), datasetId, tableId)
    .setFields(FIELDS.getString(options))
    .execute();
 } catch (IOException ex) {
  BigQueryException serviceException = translate(ex);
  if (serviceException.code() == HTTP_NOT_FOUND) {
   return null;
  }
  throw serviceException;
 }
}
origin: com.google.cloud.bigdataoss/bigquery-connector

/**
 * Returns true if the table exists, or false if not.
 */
public boolean tableExists(TableReference tableRef) throws IOException {
 try {
  Table fetchedTable = service.tables().get(
    tableRef.getProjectId(), tableRef.getDatasetId(), tableRef.getTableId()).execute();
  logger.atFine().log(
    "Successfully fetched table '%s' for tableRef '%s'", fetchedTable, tableRef);
  return true;
 } catch (IOException ioe) {
  if (errorExtractor.itemNotFound(ioe)) {
   return false;
  } else {
   // Unhandled exceptions should just propagate up.
   throw ioe;
  }
 }
}
origin: com.google.cloud/google-cloud-bigquery

@Override
public Table getTable(
  String projectId, String datasetId, String tableId, Map<Option, ?> options) {
 try {
  return bigquery
    .tables()
    .get(projectId, datasetId, tableId)
    .setFields(Option.FIELDS.getString(options))
    .execute();
 } catch (IOException ex) {
  BigQueryException serviceException = translate(ex);
  if (serviceException.getCode() == HTTP_NOT_FOUND) {
   return null;
  }
  throw serviceException;
 }
}
com.google.api.services.bigqueryBigquery$Tables$Getexecute

Popular methods of Bigquery$Tables$Get

  • setFields
  • <init>
    Gets the specified table resource by table ID. This method does not return the data in the table, it

Popular in Java

  • Making http post requests using okhttp
  • findViewById (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • setContentView (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now