Skip to content

Commit 8ba9230

Browse files
committed
Merge pull request #621 from mziccard/bigquery-hierachies
Make Table methods public
2 parents f7990c0 + 7761a9e commit 8ba9230

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

  • gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery

gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery/Table.java

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ public boolean delete() {
182182
* @param rows rows to be inserted
183183
* @throws BigQueryException upon failure
184184
*/
185-
InsertAllResponse insert(Iterable<InsertAllRequest.RowToInsert> rows) throws BigQueryException {
185+
public InsertAllResponse insert(Iterable<InsertAllRequest.RowToInsert> rows)
186+
throws BigQueryException {
186187
return bigquery.insertAll(InsertAllRequest.of(tableId(), rows));
187188
}
188189

@@ -197,8 +198,8 @@ InsertAllResponse insert(Iterable<InsertAllRequest.RowToInsert> rows) throws Big
197198
* to be invalid
198199
* @throws BigQueryException upon failure
199200
*/
200-
InsertAllResponse insert(Iterable<InsertAllRequest.RowToInsert> rows, boolean skipInvalidRows,
201-
boolean ignoreUnknownValues) throws BigQueryException {
201+
public InsertAllResponse insert(Iterable<InsertAllRequest.RowToInsert> rows,
202+
boolean skipInvalidRows, boolean ignoreUnknownValues) throws BigQueryException {
202203
InsertAllRequest request = InsertAllRequest.builder(tableId(), rows)
203204
.skipInvalidRows(skipInvalidRows)
204205
.ignoreUnknownValues(ignoreUnknownValues)
@@ -212,7 +213,7 @@ InsertAllResponse insert(Iterable<InsertAllRequest.RowToInsert> rows, boolean sk
212213
* @param options table data list options
213214
* @throws BigQueryException upon failure
214215
*/
215-
Page<List<FieldValue>> list(BigQuery.TableDataListOption... options) throws BigQueryException {
216+
public Page<List<FieldValue>> list(BigQuery.TableDataListOption... options) throws BigQueryException {
216217
return bigquery.listTableData(tableId(), options);
217218
}
218219

@@ -225,7 +226,7 @@ Page<List<FieldValue>> list(BigQuery.TableDataListOption... options) throws BigQ
225226
* @param options job options
226227
* @throws BigQueryException upon failure
227228
*/
228-
Job copy(String destinationDataset, String destinationTable, BigQuery.JobOption... options)
229+
public Job copy(String destinationDataset, String destinationTable, BigQuery.JobOption... options)
229230
throws BigQueryException {
230231
return copy(TableId.of(destinationDataset, destinationTable), options);
231232
}
@@ -238,7 +239,8 @@ Job copy(String destinationDataset, String destinationTable, BigQuery.JobOption.
238239
* @param options job options
239240
* @throws BigQueryException upon failure
240241
*/
241-
Job copy(TableId destinationTable, BigQuery.JobOption... options) throws BigQueryException {
242+
public Job copy(TableId destinationTable, BigQuery.JobOption... options)
243+
throws BigQueryException {
242244
CopyJobConfiguration configuration = CopyJobConfiguration.of(destinationTable, tableId());
243245
return bigquery.create(JobInfo.of(configuration), options);
244246
}
@@ -253,7 +255,7 @@ Job copy(TableId destinationTable, BigQuery.JobOption... options) throws BigQuer
253255
* @param options job options
254256
* @throws BigQueryException upon failure
255257
*/
256-
Job extract(String format, String destinationUri, BigQuery.JobOption... options)
258+
public Job extract(String format, String destinationUri, BigQuery.JobOption... options)
257259
throws BigQueryException {
258260
return extract(format, ImmutableList.of(destinationUri), options);
259261
}
@@ -268,7 +270,7 @@ Job extract(String format, String destinationUri, BigQuery.JobOption... options)
268270
* @param options job options
269271
* @throws BigQueryException upon failure
270272
*/
271-
Job extract(String format, List<String> destinationUris, BigQuery.JobOption... options)
273+
public Job extract(String format, List<String> destinationUris, BigQuery.JobOption... options)
272274
throws BigQueryException {
273275
ExtractJobConfiguration extractConfiguration =
274276
ExtractJobConfiguration.of(tableId(), destinationUris, format);
@@ -285,7 +287,7 @@ Job extract(String format, List<String> destinationUris, BigQuery.JobOption... o
285287
* @param options job options
286288
* @throws BigQueryException upon failure
287289
*/
288-
Job load(FormatOptions format, String sourceUri, BigQuery.JobOption... options)
290+
public Job load(FormatOptions format, String sourceUri, BigQuery.JobOption... options)
289291
throws BigQueryException {
290292
return load(format, ImmutableList.of(sourceUri), options);
291293
}
@@ -300,7 +302,7 @@ Job load(FormatOptions format, String sourceUri, BigQuery.JobOption... options)
300302
* @param options job options
301303
* @throws BigQueryException upon failure
302304
*/
303-
Job load(FormatOptions format, List<String> sourceUris, BigQuery.JobOption... options)
305+
public Job load(FormatOptions format, List<String> sourceUris, BigQuery.JobOption... options)
304306
throws BigQueryException {
305307
LoadJobConfiguration loadConfig = LoadJobConfiguration.of(tableId(), sourceUris, format);
306308
return bigquery.create(JobInfo.of(loadConfig), options);

0 commit comments

Comments
 (0)