File tree Expand file tree Collapse file tree
gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ import com.google.gcloud.bigquery.BigQuery;
130130import com.google.gcloud.bigquery.BigQueryOptions;
131131import com.google.gcloud.bigquery.Field;
132132import com.google.gcloud.bigquery.JobStatus;
133- import com.google.gcloud.bigquery.LoadJobInfo ;
133+ import com.google.gcloud.bigquery.JobInfo ;
134134import com.google.gcloud.bigquery.Schema;
135135import com.google.gcloud.bigquery.TableId;
136136import com.google.gcloud.bigquery.TableInfo;
@@ -144,7 +144,8 @@ if (info == null) {
144144 bigquery.create(TableInfo.of(tableId, Schema.of(integerField)));
145145} else {
146146 System.out.println(" Loading data into table " + tableId);
147- LoadJobInfo loadJob = LoadJobInfo.of(tableId, " gs://bucket/path" );
147+ LoadJobConfiguration configuration = LoadJobConfiguration.of(tableId, " gs://bucket/path" );
148+ JobInfo loadJob = JobInfo.of(configuration);
148149 loadJob = bigquery.create(loadJob);
149150 while (loadJob.status().state() ! = JobStatus.State.DONE) {
150151 Thread.sleep(1000L);
Original file line number Diff line number Diff line change 2828 * bigquery.create(TableInfo.of(tableId, Schema.of(integerField)));
2929 * } else {
3030 * System.out.println("Loading data into table " + tableId);
31- * LoadJobInfo loadJob = LoadJobInfo.of(tableId, "gs://bucket/path");
31+ * LoadJobConfiguration configuration = LoadJobConfiguration.of(tableId, "gs://bucket/path");
32+ * JobInfo loadJob = JobInfo.of(configuration);
3233 * loadJob = bigquery.create(loadJob);
3334 * while (loadJob.status().state() != JobStatus.State.DONE) {
3435 * Thread.sleep(1000L);
You can’t perform that action at this time.
0 commit comments