@Experimental public interface LuceneResultStruct<K,V>
Abstract data structure for one item in query result.
Modifier and Type | Method and Description |
---|---|
K |
getKey()
Return key of the entry
|
java.lang.Object |
getProjectedField(java.lang.String fieldName)
Return the value associated with the given field name
|
float |
getScore()
Return score of the query
|
V |
getValue()
Return value of the entry
|
java.lang.Object getProjectedField(java.lang.String fieldName)
fieldName
- the String name of the fieldjava.lang.IllegalArgumentException
- If this struct does not have a field named fieldNameK getKey()
java.lang.IllegalArgumentException
- If this struct does not contain keyV getValue()
java.lang.IllegalArgumentException
- If this struct does not contain valuefloat getScore()
java.lang.IllegalArgumentException
- If this struct does not contain score