public Job extractSingle(String format, String gcsUrl) {
    // [START bigquery_extract_table]
    Job job = table.extract(format, gcsUrl);
    // Wait for the job to complete
    try {
      Job completedJob =
          job.waitFor(
              RetryOption.initialRetryDelay(Duration.ofSeconds(1)),
              RetryOption.totalTimeout(Duration.ofMinutes(3)));
      if (completedJob != null && completedJob.getStatus().getError() == null) {
        // Job completed successfully
      } else {
        // Handle error case
      }
    } catch (InterruptedException e) {
      // Handle interrupted wait
    }
    // [END bigquery_extract_table]
    return job;
  }
public Job extractSingle ( String format , String gcsUrl ) { Job job = table . extract ( format , gcsUrl ) ; try { Job completedJob = job . waitFor ( RetryOption . initialRetryDelay ( Duration . ofSeconds ( 1 ) ) , RetryOption . totalTimeout ( Duration . ofMinutes ( 3 ) ) ) ; if ( completedJob != null && completedJob . getStatus ( ) . getError ( ) == null ) { } else { } } catch ( InterruptedException e ) { } return job ; }
[VARIABLE "gs://my_bucket/filename.csv"]