Class RetrievalResultImpl
java.lang.Object
de.uni_trier.wi2.procake.retrieval.impl.RetrievalResultImpl
- All Implemented Interfaces:
RetrievalResult
,Comparable<RetrievalResult>
- Direct Known Subclasses:
DependencyRetrievalResultImpl
- Author:
- rmaximi
-
Constructor Summary
ConstructorDescriptionRetrievalResultImpl
(Similarity sim, DataObject resultObject) RetrievalResultImpl
(Similarity sim, String objectId) -
Method Summary
Modifier and TypeMethodDescriptionint
long
void
setResultId
(String resultId) void
setResultObject
(DataObject resultObject) void
setRetrievalTime
(long retrievalTimeNano) void
setSimilarity
(Similarity similarity) toString()
-
Constructor Details
-
RetrievalResultImpl
public RetrievalResultImpl() -
RetrievalResultImpl
-
RetrievalResultImpl
-
-
Method Details
-
getObject
Description copied from interface:RetrievalResult
- Specified by:
getObject
in interfaceRetrievalResult
- Returns:
- the retrieval result object if
Query.setRetrieveCases(boolean)
wastrue
-
getObjectId
- Specified by:
getObjectId
in interfaceRetrievalResult
- Returns:
- The object id of the retrieval result.
-
getSimilarity
- Specified by:
getSimilarity
in interfaceRetrievalResult
- Returns:
- the similarity value of the retrieval result.
-
setSimilarity
-
getRetrievalTime
public long getRetrievalTime()- Specified by:
getRetrievalTime
in interfaceRetrievalResult
- Returns:
- The time used for retrieval in nanoseconds.
-
setRetrievalTime
public void setRetrievalTime(long retrievalTimeNano) -
setResultId
-
setResultObject
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<RetrievalResult>
-