|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.searcher.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)
Reads the fields of this object from 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)
Writes the fields of this object to 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
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 |