org.apache.jackrabbit.core.query.lucene
Interface AggregateRule


public interface AggregateRule

AggregateRule defines a configuration for a node index aggregate. It defines rules for items that should be included in the node scope index of an ancestor. Per default the values of properties are only added to the node scope index of the parent node.


Method Summary
 NodeState[] getAggregatedNodeStates(NodeState nodeState)
          Returns the node states that are part of the indexing aggregate of the nodeState.
 PropertyState[] getAggregatedPropertyStates(NodeState nodeState)
          Returns the property states that are part of the indexing aggregate of the nodeState.
 NodeState getAggregateRoot(NodeState nodeState)
          Returns root node state for the indexing aggregate where nodeState belongs to.
 

Method Detail

getAggregateRoot

NodeState getAggregateRoot(NodeState nodeState)
                           throws ItemStateException,
                                  RepositoryException
Returns root node state for the indexing aggregate where nodeState belongs to.

Parameters:
nodeState -
Returns:
the root node state of the indexing aggregate or null if nodeState does not belong to an indexing aggregate.
Throws:
ItemStateException - if an error occurs.
RepositoryException - if an error occurs.

getAggregatedNodeStates

NodeState[] getAggregatedNodeStates(NodeState nodeState)
                                    throws ItemStateException
Returns the node states that are part of the indexing aggregate of the nodeState.

Parameters:
nodeState - a node state
Returns:
the node states that are part of the indexing aggregate of nodeState. Returns null if this aggregate does not apply to nodeState.
Throws:
ItemStateException - if an error occurs.

getAggregatedPropertyStates

PropertyState[] getAggregatedPropertyStates(NodeState nodeState)
                                            throws ItemStateException
Returns the property states that are part of the indexing aggregate of the nodeState.

Parameters:
nodeState - a node state
Returns:
the property states that are part of the indexing aggregate of nodeState. Returns null if this aggregate does not apply to nodeState.
Throws:
ItemStateException - if an error occurs.


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