|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.query.lucene.ScoreNode
public final class ScoreNode
ScoreNode
implements a simple container which holds a mapping
of NodeId
to a score value.
Constructor Summary | |
---|---|
ScoreNode(NodeId id,
float score)
Creates a new ScoreNode . |
|
ScoreNode(NodeId id,
float score,
int doc)
Creates a new ScoreNode . |
Method Summary | |
---|---|
int |
getDoc(org.apache.lucene.index.IndexReader reader)
Returns the document number for this score node. |
NodeId |
getNodeId()
|
float |
getScore()
|
void |
setScore(float score)
Sets a new score value. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScoreNode(NodeId id, float score)
ScoreNode
.
id
- the node id.score
- the score value.public ScoreNode(NodeId id, float score, int doc)
ScoreNode
.
id
- the node id.score
- the score value.doc
- the document number.Method Detail |
---|
public NodeId getNodeId()
ScoreNode
.public float getScore()
ScoreNode
.public void setScore(float score)
score
- the score value.public int getDoc(org.apache.lucene.index.IndexReader reader) throws IOException
reader
- the current index reader to look up the document if
needed.
IOException
- if an error occurs while reading from the index or
the node is not present in the index.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |