uchiha-asha commented on code in PR #16864:
URL: https://github.com/apache/lucene/pull/16864#discussion_r4676785514
##########
lucene/core/src/java/org/apache/lucene/index/FieldInfo.java:
##########
@@ -597,6 +597,28 @@ public DocValuesSkipIndexType docValuesSkipIndexType() {
return docValuesSkipIndex;
}
+ /** Returns true if every property of this field, including its attributes,
equals {@code o}'s. */
+ boolean hasSameState(FieldInfo o) {
Review Comment:
We can have something like following, since only two fields change across
generation for a `FieldInfo`. Not sure if we should do it though since it will
add to heap when segments are not updated.
`record GenState(long dvGen, Map<String, String> attributes) {}`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]