Skip to content

Commit 6bf8edf

Browse files
authored
---
yaml --- r: 9719 b: refs/heads/spanner-gapic-migration c: 4b6e1cb h: refs/heads/master i: 9717: d01f71a 9715: a4a48c0 9711: 96e9e73
1 parent a651b36 commit 6bf8edf

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

  • branches/spanner-gapic-migration/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ refs/tags/v0.34.0: bf31760a31a66acb239322a70dcd03dbe1d0c7ca
8080
refs/tags/v0.35.0: c28951c5f4cc97a1be07900d19df6984115a4bd6
8181
refs/tags/v0.36.0: 6b75c61f73e6827b3ca379bd54f88f750290162f
8282
refs/tags/v0.37.0: db2e142f92601709fdd48db159776f905742e30f
83-
refs/heads/spanner-gapic-migration: 40a0012c998c8e7ebd0a049686f3cc074e273366
83+
refs/heads/spanner-gapic-migration: 4b6e1cbe806eb88607fb955efa32eaa50e6aab43
8484
refs/tags/v0.38.0: c235ee4df5e1248e1769dae3f86a0d7ab7fd8301
8585
refs/tags/v0.39.0: ab231c9d22475242a43d6d9554aa4a3f736dab01
8686
refs/tags/v0.40.0: a1d5b05206cce7734365f1b910396a2c9d6605ec

branches/spanner-gapic-migration/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableResult.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import static com.google.common.base.Preconditions.checkNotNull;
2020

21+
import com.google.api.core.InternalApi;
2122
import com.google.api.gax.paging.Page;
2223
import com.google.common.base.Function;
2324
import com.google.common.base.MoreObjects;
@@ -35,7 +36,12 @@ public class TableResult implements Page<FieldValueList>, Serializable {
3536
private final long totalRows;
3637
private final Page<FieldValueList> pageNoSchema;
3738

38-
TableResult(Schema schema, long totalRows, Page<FieldValueList> pageNoSchema) {
39+
/**
40+
* If {@code schema} is non-null, {@code TableResult} adds the schema to {@code FieldValueList}s
41+
* when iterating through them. {@code pageNoSchema} must not be null.
42+
*/
43+
@InternalApi("Exposed for testing")
44+
public TableResult(Schema schema, long totalRows, Page<FieldValueList> pageNoSchema) {
3945
this.schema = schema;
4046
this.totalRows = totalRows;
4147
this.pageNoSchema = checkNotNull(pageNoSchema);

0 commit comments

Comments
 (0)