lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <>
Subject Re: attribute thoughts
Date Wed, 19 Aug 2009 00:44:26 GMT
On Tue, Aug 18, 2009 at 8:01 PM, Michael Busch<> wrote:
> On 8/14/09 9:23 AM, Yonik Seeley wrote:
>> Another thing I was wondering about was the opacity of State - one
>> can't inspect or change the attributes w/o restoring it first.
>> Undesirable limitation, or feature allowing more flexible state
>> implementations?
> Excellent point! This limitation is currently there to discourage changing
> values of
> a state, because that would be rather inefficient: you'd have to lookup the
> attribute(s)
> of each state you want to change.

Yeah, but restoring state also involves looking up attributes... so if
one is going to skip around a cached list of States (tokens), it can
still be more efficient to not restore each.


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

View raw message