Interface RetrievalResult
- All Superinterfaces:
Comparable<RetrievalResult>
- All Known Subinterfaces:
DependencyRetrievalResult
- All Known Implementing Classes:
DependencyRetrievalResultImpl
,RetrievalResultImpl
One retrieval result.
The retrieval result contains the similarity value of the retrieved object and the id of the
retrieved object. Whether the object can be get with getObject()
depends on
Query.setRetrieveCases(boolean)
is set to true
or false
.
- Author:
- Rainer Maximini
-
Method Summary
Modifier and TypeMethodDescriptionlong
Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getObject
DataObject getObject()- Returns:
- the retrieval result object if
Query.setRetrieveCases(boolean)
wastrue
-
getObjectId
String getObjectId()- Returns:
- The object id of the retrieval result.
-
getSimilarity
Similarity getSimilarity()- Returns:
- the similarity value of the retrieval result.
-
getRetrievalTime
long getRetrievalTime()- Returns:
- The time used for retrieval in nanoseconds.
-