|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap<K,V> java.util.TreeMap<X,java.util.Set<Y>> org.knowceans.map.TreeMultiMap<X,Y> org.knowceans.map.InvertibleTreeMultiMap<K,V> org.knowceans.map.RankingMap<java.lang.Double,java.lang.Integer> org.knowceans.map.IndexRanking
public class IndexRanking
IndexSorter is a convenience class that sorts Integer indices (values) by their scores (keys).
Nested Class Summary | |
---|---|
class |
IndexRanking.IndexEntry
|
Nested classes/interfaces inherited from class org.knowceans.map.RankingMap |
---|
RankingMap.RankEntry |
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Constructor Summary | |
---|---|
IndexRanking()
|
|
IndexRanking(boolean reverse)
|
|
IndexRanking(java.util.Comparator<? super java.lang.Double> comp)
|
|
IndexRanking(IMultiMap<java.lang.Double,java.lang.Integer> map)
|
|
IndexRanking(IMultiMap<java.lang.Double,java.lang.Integer> map,
java.util.Comparator<? super java.lang.Double> comp)
|
Method Summary | |
---|---|
java.util.List<IndexRanking.IndexEntry> |
entryList()
|
java.util.List<IndexRanking.IndexEntry> |
entryList(int count)
Get sorted key-value pairs with duplicate scores resolved |
IndexRanking |
headMap(java.lang.Double fromKey)
|
IndexRanking |
headMap(int count)
creates a new map with count values referenced (but not |
IndexRanking |
tailMap(java.lang.Double fromKey)
|
Methods inherited from class org.knowceans.map.RankingMap |
---|
main, put, put, sortedKeys, sortedKeys, sortedValues, sortedValues |
Methods inherited from class org.knowceans.map.InvertibleTreeMultiMap |
---|
add, clear, getInverse, getInverse, getInverseValue, put, remove, remove |
Methods inherited from class java.util.TreeMap |
---|
ceilingEntry, ceilingKey, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, get, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, putAll, size, subMap, subMap, tailMap, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, isEmpty, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, putAll, size, values |
Constructor Detail |
---|
public IndexRanking()
public IndexRanking(boolean reverse)
reverse
- public IndexRanking(java.util.Comparator<? super java.lang.Double> comp)
comp
- public IndexRanking(IMultiMap<java.lang.Double,java.lang.Integer> map, java.util.Comparator<? super java.lang.Double> comp)
map
- comp
- public IndexRanking(IMultiMap<java.lang.Double,java.lang.Integer> map)
map
- Method Detail |
---|
public IndexRanking headMap(int count)
headMap
in class RankingMap<java.lang.Double,java.lang.Integer>
count
- public java.util.List<IndexRanking.IndexEntry> entryList(int count)
entryList
in class RankingMap<java.lang.Double,java.lang.Integer>
count
- maximum number of entries returned
public java.util.List<IndexRanking.IndexEntry> entryList()
entryList
in class RankingMap<java.lang.Double,java.lang.Integer>
public IndexRanking headMap(java.lang.Double fromKey)
headMap
in interface java.util.NavigableMap<java.lang.Double,java.util.Set<java.lang.Integer>>
headMap
in interface java.util.SortedMap<java.lang.Double,java.util.Set<java.lang.Integer>>
headMap
in class RankingMap<java.lang.Double,java.lang.Integer>
public IndexRanking tailMap(java.lang.Double fromKey)
tailMap
in interface java.util.NavigableMap<java.lang.Double,java.util.Set<java.lang.Integer>>
tailMap
in interface java.util.SortedMap<java.lang.Double,java.util.Set<java.lang.Integer>>
tailMap
in class RankingMap<java.lang.Double,java.lang.Integer>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |