This class overrides "equals()" and should therefore also override "hashCode()".
- Ngôn ngữ chính
- Java
- Star
- 6.4k
- Fork
- 1.2k
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 115
Mô tả
Code Path:server/src/main/java/org/apache/iotdb/db/metadata/mnode/container/MNodeContainers.java
According to the Java Language Specification, there is a contract between equals(Object) and hashCode():
If two objects are equal according to the equals(Object) method, then calling the hashCode method on each of the two objects must produce the same integer result.
It is not required that if two objects are unequal according to the equals(java.lang.Object) method, then calling the hashCode method on each of the two objects must produce distinct integer results.
However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hashtables.
In order to comply with this contract, those methods should be either both inherited, or both overridden.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu tại server/src/main/java/org/apache/iotdb/db/metadata/mnode/container/MNodeContainers.java và kiểm tra triển khai equals(Object) hiện có. Xác nhận liệu pull request được liên kết đã giải quyết vấn đề hay chưa; hoàn tất nghĩa là lớp tuân thủ contract của equals/hashCode và các bài kiểm thử liên quan đều đạt.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java
- Lĩnh vực
- databases
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 25/100