Show / Hide Table of Contents

    Class SimpleStringInterner

    Simple lockless and memory barrier free String intern cache that is guaranteed to return the same String instance as String.intern() does.

    Inheritance
    System.Object
    StringInterner
    SimpleStringInterner
    Inherited Members
    StringInterner.Intern(Char[], Int32, Int32)
    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 Source

    SimpleStringInterner(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 Source

    Intern(String)

    Declaration
    public override string Intern(string s)
    Parameters
    Type Name Description
    System.String s
    Returns
    Type Description
    System.String
    Overrides
    StringInterner.Intern(String)

    Extension Methods

    Number.IsNumber(Object)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Licensed to the Apache Software Foundation (ASF)