|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.search.Hit<V>
public class Hit<V extends Comparable<V>>
Metadata about a search result.
| Method Summary | |
|---|---|
void |
add(String term,
double weight)
Adds another component to the cosine. |
int |
compareTo(Hit<V> o)
Sorts Hits into decreasing cosine order with ties broken by the
the docId. |
double |
getCosine()
The computed relevance score. |
V |
getDocId()
The document identifier associated with the search result. |
int |
getRank()
The rank of this hit within the context of the search. |
int |
getTermCount()
The #of terms for which a hit was reported for this document. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public int getTermCount()
public double getCosine()
IHit
getCosine in interface IHit<V extends Comparable<V>>public int getRank()
IHit
getRank in interface IHit<V extends Comparable<V>>public V getDocId()
IHit
getDocId in interface IHit<V extends Comparable<V>>
public void add(String term,
double weight)
public String toString()
toString in class Objectpublic int compareTo(Hit<V> o)
Hits into decreasing cosine order with ties broken by the
the docId.
compareTo in interface Comparable<Hit<V extends Comparable<V>>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||