Use Document order traversal for reindexing performed on DocumentNodeStore setups
Add equals support
package org.apache.jackrabbit.oak.index.indexer.document;
+import java.util.Objects;
+
import org.apache.jackrabbit.oak.spi.state.NodeState;
public class NodeStateEntry {
@@ -37,4 +39,18 @@ public class NodeStateEntry {
public String getPath() {
return path;
}
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ NodeStateEntry that = (NodeStateEntry) o;
+ return Objects.equals(nodeState, that.nodeState) &&
+ Objects.equals(path, that.path);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(nodeState, path);
+ }
}
