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.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()
Assembly: Lucene.Net.Highlighter.dll
protected class PositionCheckingMap<K> : IDictionary<K, WeightedSpanTerm>, ICollection<KeyValuePair<K, WeightedSpanTerm>>, IEnumerable<KeyValuePair<K, WeightedSpanTerm>>, IEnumerable
Type Parameters
Properties
|
Improve this Doc
View Source
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public bool IsReadOnly { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public WeightedSpanTerm this[K key] { get; set; }
Parameters
Type |
Name |
Description |
K |
key |
|
Property Value
|
Improve this Doc
View Source
Declaration
public ICollection<K> Keys { get; }
Property Value
Type |
Description |
System.Collections.Generic.ICollection<K> |
|
|
Improve this Doc
View Source
Declaration
public ICollection<WeightedSpanTerm> Values { get; }
Property Value
Methods
|
Improve this Doc
View Source
Declaration
public void Add(K key, WeightedSpanTerm value)
Parameters
|
Improve this Doc
View Source
Declaration
public void Add(KeyValuePair<K, WeightedSpanTerm> item)
Parameters
Type |
Name |
Description |
System.Collections.Generic.KeyValuePair<K, WeightedSpanTerm> |
item |
|
|
Improve this Doc
View Source
Declaration
|
Improve this Doc
View Source
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
Declaration
public bool ContainsKey(K key)
Parameters
Type |
Name |
Description |
K |
key |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
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
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
Declaration
public bool Remove(K key)
Parameters
Type |
Name |
Description |
K |
key |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
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
Declaration
public bool TryGetValue(K key, out WeightedSpanTerm value)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Explicit Interface Implementations
|
Improve this Doc
View Source
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