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>
Assembly: Lucene.Net.Highlighter.dll
protected class PositionCheckingMap<K> : IDictionary<K, WeightedSpanTerm>
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 |
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
|
Improve this Doc
View Source
Declaration
|
Improve this Doc
View Source
Declaration
public bool Contains(KeyValuePair<K, WeightedSpanTerm> item)
Parameters
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 |
KeyValuePair<K, WeightedSpanTerm>[] |
array |
|
System.Int32 |
arrayIndex |
|
|
Improve this Doc
View Source
Declaration
public IEnumerator<KeyValuePair<K, WeightedSpanTerm>> GetEnumerator()
Returns
|
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
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 |
|