org.apache.jackrabbit.core.query.lucene.join
Class ScoreNodeMap

java.lang.Object
  extended by 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 of ScoreNode[].


Constructor Summary
ScoreNodeMap()
           
 
Method Summary
 void addScoreNodes(Object key, ScoreNode[] nodes)
          Adds scoreNodes to this map under the given key.
 ScoreNode[][] getScoreNodes(Object key)
          Returns an array of ScoreNode[] for the given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScoreNodeMap

public ScoreNodeMap()
Method Detail

addScoreNodes

public void addScoreNodes(Object key,
                          ScoreNode[] nodes)
Adds scoreNodes to this map under the given key. If there already exists a mapping with the given key the scoreNodes are added to the existingmapping. The add operation works as follows:

Parameters:
key - the lookup key.
nodes - the score nodes.

getScoreNodes

public ScoreNode[][] getScoreNodes(Object key)
Returns an array of ScoreNode[] for the given key.

Parameters:
key - the key.
Returns:
an array of ScoreNode[] that match the given key or null if there is none.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.