lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless" <luc...@mikemccandless.com>
Subject Re: Payload API
Date Mon, 19 Nov 2007 20:18:49 GMT

"Yonik Seeley" <yonik@apache.org> wrote:
> On Nov 19, 2007 3:06 PM, Michael Busch <buschmic@gmail.com> wrote:
> > Yonik Seeley wrote:
> > >
> > > That's not immutable if I can change the bytes in the byte[] (and it's
> > > legal to do so), since it will result in the value of other payload
> > > objects changing.
> > >
> > > -Yonik
> > >
> >
> > True. I think what I mean here is that the caller that sets the Payload
> > doesn't have to worry about filters down the chain that might change
> > bytes in the byte[] array.

I'm not sure this is good?  Don't we want to [efficiently] allow
filters down the line to modify a payload (just like filters can
modify the char[] termBuffer)?  Admittedly I would expect it to be
rare but I'm not sure we want to entirely rule out doing so
efficiently?

Mike

---------------------------------------------------------------------
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