lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doron Cohen <>
Subject Re: Token termBuffer issues
Date Tue, 24 Jul 2007 21:51:09 GMT
"Michael McCandless" wrote:

>   boolean next(Token resToken)
> which returns true if it has updated resToken with another token,
> else false if end-of-stream was hit.

I would actually prefer
    Token next(Token resToken)
- this was the API with reuse is very much like the one without reuse
(except for the reusable param) - easier for app dev.
- it allows to return useful result also in cases where the specific
implementation does not support reuse, or null was passed (indicating reuse
is not desired), or something in the data/state inhibited reuse.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message