net.sourceforge.nite.search.rewriter
Interface ConditionDistributor

All Known Implementing Classes:
ConditionDistributorTemplate, DefaultConditionDistributor

public interface ConditionDistributor

An interface for classes that distribute minimal conditions (gleaned from a query) across new subqueries (SimpleQueries).

Author:
Neil Mayo

Method Summary
 NodeQuery distribute(DeclarationOrderingScheme orderingScheme)
          Distribute minimal conditions and variable declarations across new queries.
 java.util.List getTypes(java.lang.String varName)
          Get the types associated with a particular variable amongst the conditions.
 

Method Detail

distribute

NodeQuery distribute(DeclarationOrderingScheme orderingScheme)
Distribute minimal conditions and variable declarations across new queries.

Parameters:
orderingScheme - a declaration ordering scheme to be used in deciding how to distribute conditions and variables
Returns:
a NodeQuery representing the new query composed of several subqueries

getTypes

java.util.List getTypes(java.lang.String varName)
Get the types associated with a particular variable amongst the conditions.

Parameters:
varName - the name of the variable whose types we wish to know about
Returns:
a List of types bound to the variable