Skip to content

Commit 3b35aaa

Browse files
committed
---
yaml --- r: 2715 b: refs/heads/update-datastore c: 3521bf5 h: refs/heads/master i: 2713: 2c6c325 2711: 88da521
1 parent 6cc38f1 commit 3b35aaa

4 files changed

Lines changed: 35 additions & 1 deletion

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/gh-pages: 4e0561bb4504bf647db669a14417b2b2c87ba45d
55
refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3
66
refs/heads/pubsub-alpha: 1a0e970f265af871e02274085b9662b3fe29058b
77
refs/heads/resource-manager: ebf4adc5ee835cd2086c4ac5b4e78d01a5a005a7
8-
refs/heads/update-datastore: 2e8363fbf71202653a442c7aadfada2439991c3c
8+
refs/heads/update-datastore: 3521bf59218bc7a0c59d53566546af3cbe1d8b52
99
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444
1010
refs/tags/v0.0.10: 207ebd2a3472fddee69fe1298eb90429e3306efd
1111
refs/tags/v0.0.11: ffbfba48a6426ff63c08ff2117e58681f251fbf2

branches/update-datastore/gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery/ExternalTableInfo.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
import com.google.api.services.bigquery.model.Table;
2222
import com.google.common.base.MoreObjects.ToStringHelper;
2323

24+
import java.util.Objects;
25+
2426
/**
2527
* Google BigQuery External Table information. BigQuery's external tables are tables whose data
2628
* reside outside of BigQuery but can be queried as normal BigQuery tables. External tables are
@@ -103,6 +105,17 @@ ToStringHelper toStringHelper() {
103105
return super.toStringHelper().add("configuration", configuration);
104106
}
105107

108+
@Override
109+
public boolean equals(Object obj) {
110+
return obj instanceof ExternalTableInfo
111+
&& Objects.equals(toPb(), ((ExternalTableInfo) obj).toPb());
112+
}
113+
114+
@Override
115+
public int hashCode() {
116+
return Objects.hash(super.hashCode(), configuration);
117+
}
118+
106119
@Override
107120
Table toPb() {
108121
Table tablePb = super.toPb();

branches/update-datastore/gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery/TableInfo.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,16 @@ ToStringHelper toStringHelper() {
213213
.add("streamingBuffer", streamingBuffer);
214214
}
215215

216+
@Override
217+
public boolean equals(Object obj) {
218+
return obj instanceof TableInfo && Objects.equals(toPb(), ((TableInfo) obj).toPb());
219+
}
220+
221+
@Override
222+
public int hashCode() {
223+
return Objects.hash(super.hashCode(), location, streamingBuffer);
224+
}
225+
216226
@Override
217227
Table toPb() {
218228
Table tablePb = super.toPb();

branches/update-datastore/gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery/ViewInfo.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import com.google.common.collect.Lists;
2626

2727
import java.util.List;
28+
import java.util.Objects;
2829

2930
/**
3031
* Google BigQuery View Table information. BigQuery's views are logical views, not materialized
@@ -143,6 +144,16 @@ ToStringHelper toStringHelper() {
143144
.add("userDefinedFunctions", userDefinedFunctions);
144145
}
145146

147+
@Override
148+
public boolean equals(Object obj) {
149+
return obj instanceof ViewInfo && Objects.equals(toPb(), ((ViewInfo) obj).toPb());
150+
}
151+
152+
@Override
153+
public int hashCode() {
154+
return Objects.hash(super.hashCode(), query, userDefinedFunctions);
155+
}
156+
146157
@Override
147158
Table toPb() {
148159
Table tablePb = super.toPb();

0 commit comments

Comments
 (0)