|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.nutch.searcher.Hit
public class Hit
A document which matched a query in an index.
Constructor Summary | |
---|---|
Hit()
|
|
Hit(int indexNo,
String uniqueKey)
|
|
Hit(int indexNo,
String uniqueKey,
WritableComparable sortValue,
String dedupValue)
|
|
Hit(String uniqueKey,
WritableComparable sortValue,
String dedupValue)
|
Method Summary | |
---|---|
int |
compareTo(Hit other)
|
String |
getDedupValue()
Return the value of the field that hits should be deduplicated on. |
int |
getIndexNo()
Return the index number that this hit came from. |
WritableComparable |
getSortValue()
Return the value of the field that hits are sorted on. |
String |
getUniqueKey()
Return the unique identifier of this hit within an index. |
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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Hit()
public Hit(int indexNo, String uniqueKey)
public Hit(int indexNo, String uniqueKey, WritableComparable sortValue, String dedupValue)
public Hit(String uniqueKey, WritableComparable sortValue, String dedupValue)
Method Detail |
---|
public int getIndexNo()
public void setIndexNo(int indexNo)
public String getUniqueKey()
public WritableComparable getSortValue()
public String getDedupValue()
public boolean moreFromDupExcluded()
public void setMoreFromDupExcluded(boolean more)
public String toString()
toString
in class Object
public int compareTo(Hit other)
compareTo
in interface Comparable<Hit>
public void write(DataOutput out) throws IOException
write
in interface Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface Writable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |