Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Classes | Public Member Functions | List of all members
Lucene.Net.Util.SimpleStringInterner Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

Lucene.Net.Util.SimpleStringInterner.SimpleStringInterner ( int  tableSize,
int  maxChainLength 
)
Parameters
tableSizeSize of the hash table, should be a power of two.
maxChainLengthMaximum length of each bucket, after which the oldest item inserted is dropped.

Definition at line 50 of file SimpleStringInterner.cs.

Member Function Documentation

override System.String Lucene.Net.Util.SimpleStringInterner.Intern ( System.String  s)
virtual

Returns a single object instance for each equal string.

Reimplemented from Lucene.Net.Util.StringInterner.

Definition at line 57 of file SimpleStringInterner.cs.


The documentation for this class was generated from the following file: