Class SearchResult
java.lang.Object
com.complexible.stardog.api.search.SearchResult
- All Implemented Interfaces:
Copyable<SearchResult>
Simple search result data structure.
- Since:
- 0.6.5
- Version:
- 6.0
- Author:
- Michael Grove
-
Method Summary
Modifier and TypeMethodDescriptioncopy()Create a deep copy of the object which does not share any references with the original.static SearchResultbooleangetHit()Return the actual search hitintgetIndex()Return the index of the hit in the resultsdoublegetScore()Return the score of the hitinthashCode()toString()
-
Method Details
-
create
-
copy
Create a deep copy of the object which does not share any references with the original.- Specified by:
copyin interfaceCopyable<SearchResult>- Returns:
- a copy of the object
-
getScore
public double getScore()Return the score of the hit- Returns:
- the score
-
getIndex
public int getIndex()Return the index of the hit in the results- Returns:
- the index
-
getHit
Return the actual search hit- Returns:
- the hit of the search
-
equals
-
hashCode
public int hashCode() -
toString
-