Package com.redis.lettucemod.search
Class Document<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<K,V>
-
- com.redis.lettucemod.search.Document<K,V>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map<K,V>
public class Document<K,V> extends java.util.LinkedHashMap<K,V>- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocument.Builder<K,V>
-
Constructor Summary
Constructors Constructor Description Document()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)KgetId()VgetPayload()java.lang.DoublegetScore()VgetSortKey()inthashCode()static <K,V>
Document.Builder<K,V>id(K id)voidsetId(K id)voidsetPayload(V payload)voidsetScore(java.lang.Double score)voidsetSortKey(V sortKey)-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Method Detail
-
getId
public K getId()
-
setId
public void setId(K id)
-
getScore
public java.lang.Double getScore()
-
setScore
public void setScore(java.lang.Double score)
-
getSortKey
public V getSortKey()
-
setSortKey
public void setSortKey(V sortKey)
-
getPayload
public V getPayload()
-
setPayload
public void setPayload(V payload)
-
hashCode
public int hashCode()
-
equals
public boolean equals(java.lang.Object obj)
-
id
public static <K,V> Document.Builder<K,V> id(K id)
-
-