Class ScoreNodeMap
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.join.ScoreNodeMap
-
public final class ScoreNodeMap extends Object
ScoreNodeMap
implements a simple mapping of an arbitrary key to an array ofScoreNode[]
.
-
-
Constructor Summary
Constructors Constructor Description ScoreNodeMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addScoreNodes(Object key, ScoreNode[] nodes)
AddsscoreNodes
to this map under the givenkey
.ScoreNode[][]
getScoreNodes(Object key)
Returns an array ofScoreNode[]
for the givenkey
.
-
-
-
Method Detail
-
addScoreNodes
public void addScoreNodes(Object key, ScoreNode[] nodes)
AddsscoreNodes
to this map under the givenkey
. If there already exists a mapping with the givenkey
thescoreNodes
are added to the existing mapping. The add operation works as follows:- If the existing value for
key
is aScoreNode[]
, then the value is turned into aList
and the existing value as well as the new value are added to theList
. Finally theList
is uses as the new value for the mapping. - If the existing value for
key
is aList
thescoreNodes
are simply added to theList
.
- Parameters:
key
- the lookup key.nodes
- the score nodes.
- If the existing value for
-
-