|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.jcr.query.lucene.LuceneQuery
@NotThreadSafe public class LuceneQuery
A utility class that represents the Lucene Query object (or objects) that are to be executed.
Constructor Summary | |
---|---|
LuceneQuery(String pushDownIndexName)
|
Method Summary | |
---|---|
void |
addConstraintForPostprocessing(Constraint constraint)
Record one of the ANDed constraints could not be converted into a Lucene query and thus will need to be handled after the Lucene processing is done. |
void |
addQuery(org.apache.lucene.search.Query query)
Add a Lucene query for one of the ANDed constraints. |
Constraint |
getPostProcessingConstraints()
Get the ANDed-constraints that could not be pushed down to Lucene. |
String |
getPushDownIndexName()
Get the index against which the push-down query should be executed. |
org.apache.lucene.search.Query |
getPushDownQuery()
Get the Lucene query that should be executed. |
boolean |
matchesNone()
Return whether the pushdown query will always return no results. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LuceneQuery(String pushDownIndexName)
Method Detail |
---|
public void addQuery(org.apache.lucene.search.Query query)
query
- the Lucene query; never nullpublic void addConstraintForPostprocessing(Constraint constraint)
constraint
- public boolean matchesNone()
pushdown query
will always return no results.
getPushDownQuery()
to run.public org.apache.lucene.search.Query getPushDownQuery()
public String getPushDownIndexName()
push-down query
should be executed.
public Constraint getPostProcessingConstraints()
Lucene queries
public String toString()
toString
in class Object
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |