lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <yo...@lucidimagination.com>
Subject Re: attribute thoughts
Date Wed, 19 Aug 2009 00:44:26 GMT
On Tue, Aug 18, 2009 at 8:01 PM, Michael Busch<buschmic@gmail.com> 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.

-Yonik
http://www.lucidimagination.com

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