Skip to content

Commit 815c436

Browse files
authored
---
yaml --- r: 9447 b: refs/heads/master c: 4b6e1cb h: refs/heads/master i: 9445: 6148e8b 9443: caf10cf 9439: eaee9ed
1 parent 4dfb8ac commit 815c436

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 40a0012c998c8e7ebd0a049686f3cc074e273366
2+
refs/heads/master: 4b6e1cbe806eb88607fb955efa32eaa50e6aab43
33
refs/heads/travis: 47e4fee4fd5af9b2a8ce46f23c72ec95f9b195b2
44
refs/heads/gh-pages: d5bed6bb60df1cebb7a3a58ffd3c1d72e7d22540
55
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444

trunk/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)