[pylucene-dev] iteration and downcasting...
Andi Vajda
vajda at osafoundation.org
Mon Nov 26 17:42:40 PST 2007
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..
More information about the pylucene-dev
mailing list