On Mar 23, 2010, at 1:20 PM, Michael McCandless wrote: > You can implement just the "out of order" collector, since it subsumes > the in-order case, and all will work fine. > > However, if the collector can save CPU when docs are known to arrive > in-order (not all collectors can) it'd be good to make a separate > in-order one as well.
Since the thing I'm working on is a Paging Collector and it extends TopDocsCollector, and the logic looks more or less like that of the OutOfOrderTopScoreDocCollector, I think we could likewise save a few if checks with an in order one. How about I put a patch up and then you can take a look? My gut says it should be possible. -Grant --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org