|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.nutch.searcher.Hits
public final class Hits
A set of hits matching a query.
Constructor Summary | |
---|---|
Hits()
|
|
Hits(long total,
Hit[] top)
|
Method Summary | |
---|---|
Hit |
getHit(int i)
Returns the i th hit in this list. |
Hit[] |
getHits(int start,
int length)
Returns a subset of the hit objects. |
int |
getLength()
Returns the number of hits included in this current listing. |
long |
getTotal()
Returns the total number of hits for this query. |
void |
readFields(DataInput in)
|
void |
setTotalIsExact(boolean isExact)
Set totalIsExact() . |
boolean |
totalIsExact()
True if getTotal() gives the exact number of hits, or false if
it is only an estimate of the total number of hits. |
void |
write(DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Hits()
public Hits(long total, Hit[] top)
Method Detail |
---|
public long getTotal()
public boolean totalIsExact()
getTotal()
gives the exact number of hits, or false if
it is only an estimate of the total number of hits.
public void setTotalIsExact(boolean isExact)
totalIsExact()
.
public int getLength()
public Hit getHit(int i)
i
th hit in this list.
public Hit[] getHits(int start, int length)
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 |