Class SimpleStringInterner
Simple lockless and memory barrier free String intern cache that is guaranteed to return the same String instance as String.intern() does.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Support
Assembly: Lucene.Net.dll
Syntax
public class SimpleStringInterner : StringInterner
Constructors
| Improve this Doc View SourceSimpleStringInterner(Int32, Int32)
Declaration
public SimpleStringInterner(int tableSize, int maxChainLength)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | tableSize | Size of the hash table, should be a power of two. |
System.Int32 | maxChainLength | Maximum length of each bucket, after which the oldest item inserted is dropped. |
Methods
| Improve this Doc View SourceIntern(String)
Declaration
public override string Intern(string s)
Parameters
Type | Name | Description |
---|---|---|
System.String | s |
Returns
Type | Description |
---|---|
System.String |