msokolov commented on issue #17049: URL: https://github.com/apache/lucene/issues/17049#issuecomment-7069343999
I think that internally, Lucene always does copy the values first before obtaining an iterator, and we should simply document that the iterator() returned by KnnVectorValues may be shared. This is analogous to the way Scorers can supply an iterator() that is directly tied to the Scorer. It's not implementing java.util.Iterable/Iterator. Do you have any suggestion of a good way to warn users so they don't fall into this trap? -- 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]
