public class Hit<V extends Comparable<V>> extends Object implements IHit<V>, Comparable<Hit<V>>
| Modifier and Type | Method and Description |
|---|---|
void |
add(int termNdx,
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() |
public int getTermCount()
public double getCosine()
IHitgetCosine in interface IHit<V extends Comparable<V>>public int getRank()
IHitgetRank in interface IHit<V extends Comparable<V>>public V getDocId()
IHitgetDocId in interface IHit<V extends Comparable<V>>public void add(int termNdx,
double weight)
public 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>>>Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.