[pylucene-dev] iteration and downcasting...
Bill Janssen
janssen at parc.com
Mon Nov 26 16:18:23 PST 2007
> Once Java Lucene switches to Java 1.5 and declares that a HitIterator
> returns Hit objects instead of Object objects, jcc can be changed to take
> advantage of that new information to apply the correct wrapper.
I was thinking that an automatic downcast could be added to the
--sequence argument to jcc, something like
--sequence org.apache.lucene.search.Hits 'length:()I' 'doc:(I)Lorg/apache/lucene/document/Document;' org.apache.lucene.search.Hit
The type of the elements of the iteration would be cast to it.
Bill
More information about the pylucene-dev
mailing list