net.sourceforge.nite.search.rewriter
Class DefaultConditionAtomiser

java.lang.Object
  extended by net.sourceforge.nite.search.rewriter.DefaultConditionAtomiser
All Implemented Interfaces:
ConditionAtomiser

public class DefaultConditionAtomiser
extends java.lang.Object
implements ConditionAtomiser

This implementation of ConditionAtomiser uses information internal to the NodeLogical in order to infer the points at which the constituent conditions of the query plan may be broken up. Logical groupings of OR-ed conditions are kept together as a compound condition, while top-level conjunctions (AND-ings) of elements ('elements' being OR-groupings or plain conditions) can be split up.


Constructor Summary
DefaultConditionAtomiser()
           
 
Method Summary
 java.util.List atomiseConditionsInLogicalNode(NodeLogical nl)
          Break down a logical node (NodeLogical) into minimal conditions, using the information stored in the node's logicals List.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConditionAtomiser

public DefaultConditionAtomiser()
Method Detail

atomiseConditionsInLogicalNode

public java.util.List atomiseConditionsInLogicalNode(NodeLogical nl)
Break down a logical node (NodeLogical) into minimal conditions, using the information stored in the node's logicals List.

Specified by:
atomiseConditionsInLogicalNode in interface ConditionAtomiser
Parameters:
nl - the NodeLogical which is to be atomised
Returns:
a List of minimal conditions (as NodeConditions and NodeLogicals)