|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.searcher.Hit
A document which matched a query in an index.
Constructor Summary | |
Hit()
|
|
Hit(int indexNo,
int indexDocNo)
|
|
Hit(int indexNo,
int indexDocNo,
WritableComparable sortValue,
String dedupValue)
|
|
Hit(int indexDocNo,
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. |
WritableComparable |
getSortValue()
Return the value of the field that hits are sorted on. |
int |
hashCode()
|
boolean |
moreFromDupExcluded()
True iff other, lower-scoring, hits with the same dedup value 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 |
setMoreFromDupExcluded(boolean more)
True iff other, lower-scoring, hits with the same deup value 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)
public Hit(int indexNo, int indexDocNo, WritableComparable sortValue, String dedupValue)
public Hit(int indexDocNo, WritableComparable sortValue, String dedupValue)
Method Detail |
public int getIndexNo()
public void setIndexNo(int indexNo)
public int getIndexDocNo()
public WritableComparable getSortValue()
public String getDedupValue()
public boolean moreFromDupExcluded()
public void setMoreFromDupExcluded(boolean more)
public String toString()
public boolean equals(Object o)
public int hashCode()
public int compareTo(Object o)
compareTo
in interface Comparable
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |