|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.nutch.searcher.Hit
A document which matched a query in an index.
Constructor Summary | |
Hit()
|
|
Hit(int indexDocNo,
float score,
String site)
|
|
Hit(int indexNo,
int indexDocNo,
float score,
String site)
|
Method Summary | |
int |
compareTo(Object o)
|
boolean |
equals(Object o)
|
int |
getIndexDocNo()
Return the document number of this hit within an index. |
int |
getIndexNo()
Return the index number that this hit came from. |
float |
getScore()
Return the degree to which this document matched the query. |
String |
getSite()
Return the name of this this document's website. |
int |
hashCode()
|
boolean |
moreFromSiteExcluded()
True iff other, lower-scoring, hits from the same site have been excluded from the list which contains this hit.. |
void |
readFields(DataInput in)
Reads the fields of this object from in . |
void |
setIndexNo(int indexNo)
|
void |
setMoreFromSiteExcluded(boolean more)
True iff other, lower-scoring, hits from the same site have been excluded from the list which contains this hit.. |
String |
toString()
Display as a string. |
void |
write(DataOutput out)
Writes the fields of this object to out . |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Hit()
public Hit(int indexNo, int indexDocNo, float score, String site)
public Hit(int indexDocNo, float score, String site)
Method Detail |
public int getIndexNo()
public void setIndexNo(int indexNo)
public int getIndexDocNo()
public float getScore()
public String getSite()
public boolean moreFromSiteExcluded()
public void setMoreFromSiteExcluded(boolean more)
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
IOException
public void readFields(DataInput in) throws IOException
Writable
in
. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields
in interface Writable
IOException
public String toString()
public boolean equals(Object o)
public int hashCode()
public int compareTo(Object o)
compareTo
in interface Comparable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |