@@ -51,13 +51,21 @@ type RowIterator struct {
5151 pf pageFetcher
5252
5353 // StartIndex can be set before the first call to Next. If PageInfo().Token
54- // is also set, StartIndex is ignored.
54+ // is also set, StartIndex is ignored. If Storage API is enabled,
55+ // StartIndex is also ignored because is not supported. IsAccelerated()
56+ // method can be called to check if Storage API is enabled for the RowIterator.
5557 StartIndex uint64
5658
57- // The schema of the table. Available after the first call to Next.
59+ // The schema of the table.
60+ // In some scenarios it will only be available after the first
61+ // call to Next(), like when a call to Query.Read uses
62+ // the jobs.query API for an optimized query path.
5863 Schema Schema
5964
60- // The total number of rows in the result. Available after the first call to Next.
65+ // The total number of rows in the result.
66+ // In some scenarios it will only be available after the first
67+ // call to Next(), like when a call to Query.Read uses
68+ // the jobs.query API for an optimized query path.
6169 // May be zero just after rows were inserted.
6270 TotalRows uint64
6371
@@ -169,6 +177,8 @@ func isStructPtr(x interface{}) bool {
169177}
170178
171179// PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
180+ // Currently pagination is not supported when the Storage API is enabled. IsAccelerated()
181+ // method can be called to check if Storage API is enabled for the RowIterator.
172182func (it * RowIterator ) PageInfo () * iterator.PageInfo { return it .pageInfo }
173183
174184func (it * RowIterator ) fetch (pageSize int , pageToken string ) (string , error ) {
0 commit comments