|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.searcher.Hit
public class Hit
A document which matched a query in an index.
Constructor Summary | |
---|---|
Hit()
|
|
Hit(int indexNo,
int indexDocNo)
|
|
Hit(int indexNo,
int indexDocNo,
org.apache.hadoop.io.WritableComparable sortValue,
String dedupValue)
|
|
Hit(int indexDocNo,
org.apache.hadoop.io.WritableComparable sortValue,
String dedupValue)
|
Method Summary | |
---|---|
int |
compareTo(Object o)
|
boolean |
equals(Object o)
|
String |
getDedupValue()
Return the value of the field that hits should be deduplicated on. |
int |
getIndexDocNo()
Return the document number of this hit within an index. |
int |
getIndexNo()
Return the index number that this hit came from. |
org.apache.hadoop.io.WritableComparable |
getSortValue()
Return the value of the field that hits are sorted on. |
int |
hashCode()
|
boolean |
moreFromDupExcluded()
True if other, lower-scoring, hits with the same dedup value have been excluded from the list which contains this hit.. |
void |
readFields(DataInput in)
|
void |
setIndexNo(int indexNo)
|
void |
setMoreFromDupExcluded(boolean more)
True if other, lower-scoring, hits with the same dedup value have been excluded from the list which contains this hit.. |
String |
toString()
Display as a string. |
void |
write(DataOutput 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)
public Hit(int indexNo, int indexDocNo, org.apache.hadoop.io.WritableComparable sortValue, String dedupValue)
public Hit(int indexDocNo, org.apache.hadoop.io.WritableComparable sortValue, String dedupValue)
Method Detail |
---|
public int getIndexNo()
public void setIndexNo(int indexNo)
public int getIndexDocNo()
public org.apache.hadoop.io.WritableComparable getSortValue()
public String getDedupValue()
public boolean moreFromDupExcluded()
public void setMoreFromDupExcluded(boolean more)
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int compareTo(Object o)
compareTo
in interface Comparable
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |