Class ScoreNodeMap
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.join.ScoreNodeMap
-
public final class ScoreNodeMap extends Object
ScoreNodeMapimplements 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 voidaddScoreNodes(Object key, ScoreNode[] nodes)AddsscoreNodesto 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)
AddsscoreNodesto this map under the givenkey. If there already exists a mapping with the givenkeythescoreNodesare added to the existing mapping. The add operation works as follows:- If the existing value for
keyis aScoreNode[], then the value is turned into aListand the existing value as well as the new value are added to theList. Finally theListis uses as the new value for the mapping. - If the existing value for
keyis aListthescoreNodesare simply added to theList.
- Parameters:
key- the lookup key.nodes- the score nodes.
- If the existing value for
-
-