msokolov commented on code in PR #16864:
URL: https://github.com/apache/lucene/pull/16864#discussion_r4684963843
##########
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:
I looked at this a little harder, and I see that `FieldInfo` is mutable. For
example there is `public setDocValuesType`. So I don't think we can share
instances among multiple owners since mutating the values will then effect all,
when previously it would only affect one, of the referenced instances.
--
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]