|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.slide.search.basic.expression.BasicExpression
org.apache.slide.search.basic.expression.GenericBasicExpression
org.apache.slide.search.basic.expression.MergeExpression
Abstract base class for merge expressions (AND, OR).
Field Summary | |
protected BasicExpressionFactory |
expressionFactory
|
protected java.util.Collection |
expressionsToMerge
all nested expressions |
Fields inherited from class org.apache.slide.search.basic.expression.BasicExpression |
expressionElement, resultSet |
Constructor Summary | |
(package private) |
MergeExpression(org.jdom.Element e,
java.util.Collection expressionsToMerge)
Creates a merge expression according to Element e |
Method Summary | |
IBasicResultSet |
execute()
Executes the expression. |
java.util.Collection |
getExpressionsToMerge()
Returns the expressions to merge. |
static java.lang.String |
getMustHaveMergeExpressionsMessage(java.lang.String operationName)
Returns the message of the InvalidQueryException that is thrown by the constructor the expressionsToMerge set is empty. |
protected abstract void |
merge(IBasicResultSet set)
Merges the given set into the result Set of this expression. |
protected java.lang.String |
toString(java.lang.String op)
String representation for debugging purposes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Collection expressionsToMerge
protected BasicExpressionFactory expressionFactory
Constructor Detail |
MergeExpression(org.jdom.Element e, java.util.Collection expressionsToMerge) throws InvalidQueryException
e
- jdom element, that describes the expressionexpressionsToMerge
- a Collection of IBasicExpressions to merge.Method Detail |
public java.util.Collection getExpressionsToMerge()
public IBasicResultSet execute() throws SearchException
SearchException
protected abstract void merge(IBasicResultSet set)
set
into the result Set of this expression.
set
- the Set to merge.protected java.lang.String toString(java.lang.String op)
public static java.lang.String getMustHaveMergeExpressionsMessage(java.lang.String operationName)
expressionsToMerge
set is empty.
operationName
- the name of the operation (e.g. and
)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |