lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Reason for interning?
Date Tue, 23 Mar 2004 22:02:12 GMT
Field names are interned so that they can be compared with ==, which is 
much faster than String.equals().

Doug

jitender ahuja wrote:
> Hi, 
>     I can't gather the reason for interning the String Text field in the Term class.
Can anyone tell me the reason(s) for the same.
> 
> Regards,
> Jitender

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