public final class SearchResult extends Object implements Copyable<SearchResult>
Simple search result data structure.
Modifier and Type | Method and Description |
---|---|
SearchResult |
copy()
Create a deep copy of the object which does not share any references with the original.
|
static SearchResult |
create(Resource theHit,
double theScore,
int theIndex) |
boolean |
equals(Object o) |
Resource |
getHit()
Return the actual search hit
|
int |
getIndex()
Return the index of the hit in the results
|
double |
getScore()
Return the score of the hit
|
int |
hashCode() |
String |
toString() |
public static SearchResult create(Resource theHit, double theScore, int theIndex)
public SearchResult copy()
copy
in interface Copyable<SearchResult>
public double getScore()
public int getIndex()
public Resource getHit()
Copyright © 2010-2016 Stardog Union. All Rights Reserved.