lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Busch <busch...@gmail.com>
Subject Re: Payload API
Date Mon, 19 Nov 2007 23:52:17 GMT
Yonik Seeley wrote:
> 
> So I think we all agree to do payloads by reference (do not make a
> copy of byte[] like termBuffer does), and to allow payload reuse.
> 
> So now we still have 3 viable options still on the table I think:
> Token{ byte[] payload, int payloadLength, ...}
> Token{ byte[] payload, int payloadOffset, int payloadLength,...}
> Token{ Payload p, ... }
> 

I'm for option 2. I agree that it is worthwhile to allow filters to
modify the payloads. And I'd like to optimize for the case where lot's
of tokens have payloads, and option 2 seems therefore the way to go.

-Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message