Interface RetrievalResult
-
- All Superinterfaces:
Comparable<RetrievalResult>
- All Known Subinterfaces:
DependencyRetrievalResult
- All Known Implementing Classes:
DependencyRetrievalResultImpl,RetrievalResultImpl
public interface RetrievalResult extends Comparable<RetrievalResult>
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 onQuery.setRetrieveCases(boolean)is set totrueorfalse.- Author:
- Rainer Maximini
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataObjectgetObject()StringgetObjectId()longgetRetrievalTime()SimilaritygetSimilarity()-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
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.
-
-