|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.egothor.core.Hit org.egothor.core.query.Hit
public class Hit
The Hit class represents a document returned as a result of a query. Because there is no need to retrieve metadata of a document when the hit is not judged as a hit by the hit list generated (a document may be a hit, but the ResultList may not allow it in, either because it is full, or the similarity is too low), a strategy of metadata on request is implemented.
Field Summary | |
---|---|
Barrel |
barrel
The Barrel containing this Hit. |
long |
uid
The unique ID of the document that is a Hit in a barrel . |
Fields inherited from class org.egothor.core.Hit |
---|
sim |
Constructor Summary | |
---|---|
Hit(Hit hit)
Constructor for the Hit object |
|
Hit(long uid,
Barrel barrel,
int sim)
Constructor for the Hit object. |
Method Summary | |
---|---|
protected void |
fastCloneTo(Hit h)
Prepare a new copy of this object without calling new method. |
DocumentData |
getMeta()
Return the metadata of the document that constitutes this Hit. |
boolean |
lessThan(Hit with)
Compare this Hit with the given Hit. |
Methods inherited from class org.egothor.core.Hit |
---|
setMeta |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public transient long uid
barrel
.
public transient Barrel barrel
Constructor Detail |
---|
public Hit(long uid, Barrel barrel, int sim)
uid
- the unique ID of the hit documentbarrel
- the Barrel containing the documentsim
- the calculated similarity of the hitpublic Hit(Hit hit)
hit
- Description of the ParameterMethod Detail |
---|
public DocumentData getMeta()
getMeta
in class Hit
public boolean lessThan(Hit with)
with
- the Hit to compare with this one
protected void fastCloneTo(Hit h)
h
- the new Hit object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |