Skip to content

Commit

Permalink
bigquery: unbox Boolean in examples (#3248)
Browse files Browse the repository at this point in the history
  • Loading branch information
pongad authored May 9, 2018
1 parent b391600 commit 1b3da96
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ public int hashCode() {
* <p>Example of deleting a dataset from its id, even if non-empty.
* <pre> {@code
* String datasetName = "my_dataset_name";
* Boolean deleted = bigquery.delete(datasetName, DatasetDeleteOption.deleteContents());
* boolean deleted = bigquery.delete(datasetName, DatasetDeleteOption.deleteContents());
* if (deleted) {
* // the dataset was deleted
* } else {
Expand All @@ -692,7 +692,7 @@ public int hashCode() {
* String projectId = "my_project_id";
* String datasetName = "my_dataset_name";
* DatasetId datasetId = DatasetId.of(projectId, datasetName);
* Boolean deleted = bigquery.delete(datasetId, DatasetDeleteOption.deleteContents());
* boolean deleted = bigquery.delete(datasetId, DatasetDeleteOption.deleteContents());
* if (deleted) {
* // the dataset was deleted
* } else {
Expand All @@ -712,7 +712,7 @@ public int hashCode() {
* <pre> {@code
* String datasetName = "my_dataset_name";
* String tableName = "my_table_name";
* Boolean deleted = bigquery.delete(datasetName, tableName);
* boolean deleted = bigquery.delete(datasetName, tableName);
* if (deleted) {
* // the table was deleted
* } else {
Expand All @@ -734,7 +734,7 @@ public int hashCode() {
* String datasetName = "my_dataset_name";
* String tableName = "my_table_name";
* TableId tableId = TableId.of(projectId, datasetName, tableName);
* Boolean deleted = bigquery.delete(tableId);
* boolean deleted = bigquery.delete(tableId);
* if (deleted) {
* // the table was deleted
* } else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ public Page<Dataset> listDatasets(String projectId) {
*/
// [TARGET delete(String, DatasetDeleteOption...)]
// [VARIABLE "my_dataset_name"]
public Boolean deleteDataset(String datasetName) {
public boolean deleteDataset(String datasetName) {
// [START ]
Boolean deleted = bigquery.delete(datasetName, DatasetDeleteOption.deleteContents());
boolean deleted = bigquery.delete(datasetName, DatasetDeleteOption.deleteContents());
if (deleted) {
// the dataset was deleted
} else {
Expand All @@ -186,10 +186,10 @@ public Boolean deleteDataset(String datasetName) {
// [TARGET delete(DatasetId, DatasetDeleteOption...)]
// [VARIABLE "my_project_id"]
// [VARIABLE "my_dataset_name"]
public Boolean deleteDatasetFromId(String projectId, String datasetName) {
public boolean deleteDatasetFromId(String projectId, String datasetName) {
// [START bigquery_delete_dataset]
DatasetId datasetId = DatasetId.of(projectId, datasetName);
Boolean deleted = bigquery.delete(datasetId, DatasetDeleteOption.deleteContents());
boolean deleted = bigquery.delete(datasetId, DatasetDeleteOption.deleteContents());
if (deleted) {
// the dataset was deleted
} else {
Expand All @@ -205,9 +205,9 @@ public Boolean deleteDatasetFromId(String projectId, String datasetName) {
// [TARGET delete(String, String)]
// [VARIABLE "my_dataset_name"]
// [VARIABLE "my_table_name"]
public Boolean deleteTable(String datasetName, String tableName) {
public boolean deleteTable(String datasetName, String tableName) {
// [START ]
Boolean deleted = bigquery.delete(datasetName, tableName);
boolean deleted = bigquery.delete(datasetName, tableName);
if (deleted) {
// the table was deleted
} else {
Expand All @@ -224,10 +224,10 @@ public Boolean deleteTable(String datasetName, String tableName) {
// [VARIABLE "my_project_id"]
// [VARIABLE "my_dataset_name"]
// [VARIABLE "my_table_name"]
public Boolean deleteTableFromId(String projectId, String datasetName, String tableName) {
public boolean deleteTableFromId(String projectId, String datasetName, String tableName) {
// [START bigquery_delete_table]
TableId tableId = TableId.of(projectId, datasetName, tableName);
Boolean deleted = bigquery.delete(tableId);
boolean deleted = bigquery.delete(tableId);
if (deleted) {
// the table was deleted
} else {
Expand Down

0 comments on commit 1b3da96

Please sign in to comment.