On Mon, 26 Nov 2007, Bill Janssen wrote:

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.

Yep, that's a clear possibility.

Andi..

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to