Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
Simple lockless and memory barrier free String intern cache that is guaranteed to return the same String instance as String.intern() does. More...
Inherits Lucene.Net.Util.StringInterner.
Classes | |
class | Entry |
Public Member Functions | |
SimpleStringInterner (int tableSize, int maxChainLength) | |
override System.String | Intern (System.String s) |
Returns a single object instance for each equal string. | |
Public Member Functions inherited from Lucene.Net.Util.StringInterner | |
virtual System.String | Intern (char[] arr, int offset, int len) |
Returns a single object instance for each equal string. | |
Simple lockless and memory barrier free String intern cache that is guaranteed to return the same String instance as String.intern() does.
Definition at line 27 of file SimpleStringInterner.cs.
Lucene.Net.Util.SimpleStringInterner.SimpleStringInterner | ( | int | tableSize, |
int | maxChainLength | ||
) |
tableSize | Size of the hash table, should be a power of two. |
maxChainLength | Maximum length of each bucket, after which the oldest item inserted is dropped. |
Definition at line 50 of file SimpleStringInterner.cs.
|
virtual |
Returns a single object instance for each equal string.
Reimplemented from Lucene.Net.Util.StringInterner.
Definition at line 57 of file SimpleStringInterner.cs.