Skip to content

Commit 81d5373

Browse files
committed
Remove page size snippet
1 parent 45971a5 commit 81d5373

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets/DatasetSnippets.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -115,23 +115,6 @@ public Page<Table> listDataset() {
115115
// [END listDataset]
116116
return tables;
117117
}
118-
119-
/**
120-
* Example of listing dataset tables with page sizes.
121-
*/
122-
// [TARGET list(BigQuery.TableListOption... options)]
123-
public Page<Table> listDatasetWithPageSize(long pageSize) {
124-
// [START listDataset]
125-
TableListOption option = TableListOption.pageSize(pageSize);
126-
Page<Table> tables = dataset.list(option);
127-
Iterator<Table> tableIterator = tables.iterateAll();
128-
while (tableIterator.hasNext()) {
129-
Table table = tableIterator.next();
130-
// do something with the table
131-
}
132-
// [END listDataset]
133-
return tables;
134-
}
135118

136119
/**
137120
* Example of getting a dataset table.

0 commit comments

Comments
 (0)