This is an automated email from the ASF dual-hosted git repository.
yanxinyi pushed a commit to branch 4.x
in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/4.x by this push:
new 1a260ce PHOENIX-6093 adding hashcode to phoenix pherf Column class
1a260ce is described below
commit 1a260cec940f513a2a929ab626e3c6c7a8404c4a
Author: Xinyi Yan <[email protected]>
AuthorDate: Fri Aug 21 13:58:13 2020 -0700
PHOENIX-6093 adding hashcode to phoenix pherf Column class
Signed-off-by: Xinyi Yan <[email protected]>
---
.../main/java/org/apache/phoenix/pherf/configuration/Column.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git
a/phoenix-pherf/src/main/java/org/apache/phoenix/pherf/configuration/Column.java
b/phoenix-pherf/src/main/java/org/apache/phoenix/pherf/configuration/Column.java
index c121451..9899f7e 100644
---
a/phoenix-pherf/src/main/java/org/apache/phoenix/pherf/configuration/Column.java
+++
b/phoenix-pherf/src/main/java/org/apache/phoenix/pherf/configuration/Column.java
@@ -23,6 +23,7 @@ import org.apache.phoenix.pherf.rules.DataValue;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import java.util.List;
+import java.util.Objects;
public class Column {
private String name;
@@ -55,6 +56,11 @@ public class Column {
this.mutate(column);
}
+ @Override
+ public int hashCode() {
+ return Objects.hash(this.type);
+ }
+
/**
* Equal if column name and type match
* @param column