|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ResultSet
the N-best result list produced by a ResourceProvider
in a response to a particular Query
. The ResultSet
is ordered
in descending order with the respect to the score of the individual ResourceEntry
items. ResultSet
itself implements the interface ResourceEntry
and thus exposes
facets to its users:
ResourceEntry
items
ResourceEntry
ResultSet
always contains at least one item. In a typical
situation, the user does not need (and does not want) to deal with a collection of result items
and just wants to pick the first one (the closest match) item.
Method Summary | |
ResourceEntry |
get(int i)
Returns a ResourceEntry at a given index. |
Query |
getQuery()
Returns the Query this ResultSet is a response to. |
java.util.Iterator |
iterator()
Returns the descending order iterator which reflects the underlying score-ordered collection. |
int |
size()
Returns the size of the ResultSet . |
Methods inherited from interface cz.cuni.versatile.api.ResourceEntry |
getIndex, getProperties, getResultSet, getScore, getValue |
Method Detail |
public int size()
ResultSet
.
ResultSet
.public java.util.Iterator iterator()
public ResourceEntry get(int i)
ResourceEntry
at a given index.
i
- a zero-based index, must not exceed size() -1
ResourceEntry
at a given index.
java.lang.IndexOutOfBoundsException
- in case the given index exceeded the size of the result set.public Query getQuery()
Query
this ResultSet
is a response to.
Query
this ResultSet
is a response to.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |