Tabnine Logo
BigQueryImpl.create
Code IndexAdd Tabnine to your IDE (free)

How to use
create
method
in
com.google.cloud.bigquery.BigQueryImpl

Best Java code snippets using com.google.cloud.bigquery.BigQueryImpl.create (Showing top 7 results out of 315)

origin: googleapis/google-cloud-java

@Override
public Job create(JobInfo jobInfo, JobOption... options) {
 Supplier<JobId> idProvider =
   new Supplier<JobId>() {
    @Override
    public JobId get() {
     return JobId.of();
    }
   };
 return create(jobInfo, idProvider, options);
}
origin: googleapis/google-cloud-java

@Override
public TableResult query(QueryJobConfiguration configuration, JobOption... options)
  throws InterruptedException, JobException {
 Job.checkNotDryRun(configuration, "query");
 return create(JobInfo.of(configuration), options).getQueryResults();
}
origin: googleapis/google-cloud-java

@Override
public TableResult query(QueryJobConfiguration configuration, JobId jobId, JobOption... options)
  throws InterruptedException, JobException {
 Job.checkNotDryRun(configuration, "query");
 return create(JobInfo.of(jobId, configuration), options).getQueryResults();
}
origin: googleapis/google-cloud-java

@Test
public void testCreateJobTryGet() {
 final String id = "testCreateJobTryGet-id";
 String query = "SELECT * in FOO";
 Supplier<JobId> idProvider =
   new Supplier<JobId>() {
    @Override
    public JobId get() {
     return JobId.of(id);
    }
   };
 Capture<com.google.api.services.bigquery.model.Job> jobCapture = EasyMock.newCapture();
 EasyMock.expect(
     bigqueryRpcMock.create(EasyMock.capture(jobCapture), EasyMock.eq(EMPTY_RPC_OPTIONS)))
   .andThrow(new BigQueryException(409, "already exists, for some reason"));
 EasyMock.expect(
     bigqueryRpcMock.getJob(
       anyString(),
       EasyMock.eq(id),
       EasyMock.eq((String) null),
       EasyMock.eq(EMPTY_RPC_OPTIONS)))
   .andReturn(newJobPb());
 EasyMock.replay(bigqueryRpcMock);
 bigquery = options.getService();
 ((BigQueryImpl) bigquery).create(JobInfo.of(QueryJobConfiguration.of(query)), idProvider);
 assertThat(jobCapture.getValue().getJobReference().getJobId()).isEqualTo(id);
}
origin: com.google.cloud/google-cloud-bigquery

@Override
public Job create(JobInfo jobInfo, JobOption... options) {
 Supplier<JobId> idProvider =
   new Supplier<JobId>() {
    @Override
    public JobId get() {
     return JobId.of();
    }
   };
 return create(jobInfo, idProvider, options);
}
origin: com.google.cloud/google-cloud-bigquery

@Override
public TableResult query(QueryJobConfiguration configuration, JobOption... options)
  throws InterruptedException, JobException {
 Job.checkNotDryRun(configuration, "query");
 return create(JobInfo.of(configuration), options).getQueryResults();
}
origin: com.google.cloud/google-cloud-bigquery

@Override
public TableResult query(QueryJobConfiguration configuration, JobId jobId, JobOption... options)
  throws InterruptedException, JobException {
 Job.checkNotDryRun(configuration, "query");
 return create(JobInfo.of(jobId, configuration), options).getQueryResults();
}
com.google.cloud.bigqueryBigQueryImplcreate

Popular methods of BigQueryImpl

  • optionMap
  • <init>
  • cancel
  • delete
  • getDataset
  • getJob
  • getQueryResults
  • getTable
  • listDatasets
  • listJobs
  • listTableData
  • listTables
  • listTableData,
  • listTables,
  • transformTableData,
  • getOptions,
  • options,
  • transformQueryResults,
  • writer

Popular in Java

  • Reading from database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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