msokolov commented on code in PR #15187:
URL: https://github.com/apache/lucene/pull/15187#discussion_r2387766047
##########
lucene/core/src/java/org/apache/lucene/codecs/KnnVectorsReader.java:
##########
@@ -49,6 +50,14 @@ protected KnnVectorsReader() {}
*/
public abstract void checkIntegrity() throws IOException;
+ /**
+ * If this reader wraps another for {@code field}, return the underlying
reader, else return
+ * {@link Optional#empty}
+ */
+ public Optional<KnnVectorsReader> unwrapReaderForField(String field) {
+ return Optional.empty();
Review Comment:
why not simply return `this` so callers don't have to have the slightly
awkward `orElse(this)`?
--
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]