lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: AW: Minor Patch for FilteredQuery, contributor needed.
Date Fri, 18 Jun 2004 12:19:27 GMT

On Jun 18, 2004, at 6:13 AM, Karsten Konrad wrote:
> Would you also want the filter itself
> available?
>>>
>
> the filter is not so important for me, although I think that all the 
> Filter/Query
> classes should make their contents available for postprocessing - 
> setters are
> different, but why omit a getter in this context?

I'll turn the question around.... why expose internal state when there 
isn't a use for it?  Returning mutable objects is risky business.  What 
if the developer modifies the returned object?   Is that ok?

For the filter, I'll leave that off until a need arises to add a getter.

	Erik


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


Mime
View raw message