|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ResourceEntry
represents an element of the N-best result list
produced by a ResourceProvider
in a response to a particular Query
.
The ResourceEntry
object contains not only the resource itself
but also its meta-data annotations (property/value pairs). The ability to
provide resources alongside their meta-data is especially important
when using constraint-relaxing (fall-back) types of searches, when the results
returned may only approximate the Query
.
Method Summary | |
int |
getIndex()
The zero-based index of this resource entry in the parent ResultSet . |
java.util.Map |
getProperties()
Return the meta-data annotations of the resource (property/value pairs). |
ResultSet |
getResultSet()
Returns the parent ResultSet of this ResourceEntry . |
double |
getScore()
Return the relative quality score of this resource entry with the respect to the Query .
|
java.lang.Object |
getValue()
Returns the actual resource (the value of the ResourceEntry ). |
Method Detail |
public ResultSet getResultSet()
ResultSet
of this ResourceEntry
.
ResultSet
of this ResourceEntry
public java.lang.Object getValue()
ResourceEntry
).
ResourceEntry
).public java.util.Map getProperties()
Property
instances, the values
of the map are the property values assigned as meta-data annotations to the resource represented by this entry.
public double getScore()
Query
.
The number must be from the interval (Query#DEFAULT_MATCH_SCORE, Query#EXACT_MATCH_SCORE>
which corresponds to (0.0, 1.0>
.
Query
public int getIndex()
ResultSet
.
ResultSet
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |