public final class IndexUtils
extends java.lang.Object
A utility class for nitrite Index
.
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
internalName(Index index)
Gets the internal name of an
Index . |
static <K,V extends java.lang.Comparable<V>> |
sortByScore(java.util.Map<K,V> unsortedMap)
Sorts a map against it values.
|
public static java.lang.String internalName(Index index)
Gets the internal name of an Index
.
index
- the indexpublic static <K,V extends java.lang.Comparable<V>> java.util.Map<K,V> sortByScore(java.util.Map<K,V> unsortedMap)
Sorts a map against it values. It is used to sort a score map during full-text index search.
K
- the key typeV
- the value typeunsortedMap
- the unsorted map