This class overrides "equals()" and should therefore also override "hashCode()".
- 主要言語
- Java
- スター
- 6.4k
- フォーク
- 1.2k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 115
説明
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.
コントリビューションガイド
調査の方向性
server/src/main/java/org/apache/iotdb/db/metadata/mnode/container/MNodeContainers.java から始めて、既存の equals(Object) 実装を確認してください。リンクされた pull request がすでに問題に対処しているか確認してください。完了とは、クラスが equals/hashCode コントラクトを満たし、関連するテストに合格することを意味します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- databases
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 25/100