Show / Hide Table of Contents

    Class WeightedSpanTermExtractor.PositionCheckingMap<K>

    This class makes sure that if both position sensitive and insensitive versions of the same term are added, the position insensitive one wins.

    Inheritance
    System.Object
    WeightedSpanTermExtractor.PositionCheckingMap<K>
    Implements
    System.Collections.Generic.IDictionary<K, WeightedSpanTerm>
    System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<K, WeightedSpanTerm>>
    System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<K, WeightedSpanTerm>>
    System.Collections.IEnumerable
    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.Search.Highlight
    Assembly: Lucene.Net.Highlighter.dll
    Syntax
    protected class PositionCheckingMap<K> : IDictionary<K, WeightedSpanTerm>, ICollection<KeyValuePair<K, WeightedSpanTerm>>, IEnumerable<KeyValuePair<K, WeightedSpanTerm>>, IEnumerable
    Type Parameters
    Name Description
    K

    Properties

    | Improve this Doc View Source

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    IsReadOnly

    Declaration
    public bool IsReadOnly { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Item[K]

    Declaration
    public WeightedSpanTerm this[K key] { get; set; }
    Parameters
    Type Name Description
    K key
    Property Value
    Type Description
    WeightedSpanTerm
    | Improve this Doc View Source

    Keys

    Declaration
    public ICollection<K> Keys { get; }
    Property Value
    Type Description
    System.Collections.Generic.ICollection<K>
    | Improve this Doc View Source

    Values

    Declaration
    public ICollection<WeightedSpanTerm> Values { get; }
    Property Value
    Type Description
    System.Collections.Generic.ICollection<WeightedSpanTerm>

    Methods

    | Improve this Doc View Source

    Add(K, WeightedSpanTerm)

    Declaration
    public void Add(K key, WeightedSpanTerm value)
    Parameters
    Type Name Description
    K key
    WeightedSpanTerm value
    | Improve this Doc View Source

    Add(KeyValuePair<K, WeightedSpanTerm>)

    Declaration
    public void Add(KeyValuePair<K, WeightedSpanTerm> item)
    Parameters
    Type Name Description
    System.Collections.Generic.KeyValuePair<K, WeightedSpanTerm> item
    | Improve this Doc View Source

    Clear()

    Declaration
    public void Clear()
    | Improve this Doc View Source

    Contains(KeyValuePair<K, WeightedSpanTerm>)

    Declaration
    public bool Contains(KeyValuePair<K, WeightedSpanTerm> item)
    Parameters
    Type Name Description
    System.Collections.Generic.KeyValuePair<K, WeightedSpanTerm> item
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    ContainsKey(K)

    Declaration
    public bool ContainsKey(K key)
    Parameters
    Type Name Description
    K key
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    CopyTo(KeyValuePair<K, WeightedSpanTerm>[], Int32)

    Declaration
    public void CopyTo(KeyValuePair<K, WeightedSpanTerm>[] array, int arrayIndex)
    Parameters
    Type Name Description
    System.Collections.Generic.KeyValuePair<K, WeightedSpanTerm>[] array
    System.Int32 arrayIndex
    | Improve this Doc View Source

    GetEnumerator()

    Declaration
    public IEnumerator<KeyValuePair<K, WeightedSpanTerm>> GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<K, WeightedSpanTerm>>
    | Improve this Doc View Source

    Remove(K)

    Declaration
    public bool Remove(K key)
    Parameters
    Type Name Description
    K key
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Remove(KeyValuePair<K, WeightedSpanTerm>)

    Declaration
    public bool Remove(KeyValuePair<K, WeightedSpanTerm> item)
    Parameters
    Type Name Description
    System.Collections.Generic.KeyValuePair<K, WeightedSpanTerm> item
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    TryGetValue(K, out WeightedSpanTerm)

    Declaration
    public bool TryGetValue(K key, out WeightedSpanTerm value)
    Parameters
    Type Name Description
    K key
    WeightedSpanTerm value
    Returns
    Type Description
    System.Boolean

    Explicit Interface Implementations

    | Improve this Doc View Source

    IEnumerable.GetEnumerator()

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    Implements

    System.Collections.Generic.IDictionary<TKey, TValue>
    System.Collections.Generic.ICollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Licensed to the Apache Software Foundation (ASF)