Class WeightedSpanTermExtractor.PositionCheckingMap<K>
java.lang.Object
java.util.AbstractMap<K,WeightedSpanTerm>
java.util.HashMap<K,WeightedSpanTerm>
org.apache.lucene.search.highlight.WeightedSpanTermExtractor.PositionCheckingMap<K>
- All Implemented Interfaces:
Serializable,Cloneable,Map<K,WeightedSpanTerm>
- Enclosing class:
WeightedSpanTermExtractor
protected static class WeightedSpanTermExtractor.PositionCheckingMap<K>
extends HashMap<K,WeightedSpanTerm>
This class makes sure that if both position sensitive and insensitive versions of the same term
are added, the position insensitive one wins.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionput(K key, WeightedSpanTerm newTerm) voidputAll(Map<? extends K, ? extends WeightedSpanTerm> m) Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
PositionCheckingMap
protected PositionCheckingMap()
-
-
Method Details
-
putAll
- Specified by:
putAllin interfaceMap<K,WeightedSpanTerm> - Overrides:
putAllin classHashMap<K,WeightedSpanTerm>
-
put
- Specified by:
putin interfaceMap<K,WeightedSpanTerm> - Overrides:
putin classHashMap<K,WeightedSpanTerm>
-