|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.queryParser.core.nodes.QueryNodeImpl
org.apache.lucene.queryParser.core.nodes.BooleanQueryNode
org.apache.lucene.queryParser.core.nodes.AndQueryNode
org.apache.lucene.queryParser.core.nodes.AnyQueryNode
public class AnyQueryNode
A AnyQueryNode represents an ANY operator performed on a list of
nodes.
| Field Summary |
|---|
| Fields inherited from class org.apache.lucene.queryParser.core.nodes.QueryNodeImpl |
|---|
PLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields |
| Constructor Summary | |
|---|---|
AnyQueryNode(java.util.List<QueryNode> clauses,
java.lang.CharSequence field,
int minimumMatchingElements)
|
|
| Method Summary | |
|---|---|
QueryNode |
cloneTree()
Recursive clone the QueryNode tree The tags are not copied to the new tree when you call the cloneTree() method |
java.lang.CharSequence |
getField()
returns null if the field was not specified |
java.lang.String |
getFieldAsString()
returns - null if the field was not specified |
int |
getMinimumMatchingElements()
|
void |
setField(java.lang.CharSequence field)
|
java.lang.CharSequence |
toQueryString(EscapeQuerySyntax escapeSyntaxParser)
convert to a query string understood by the query parser |
java.lang.String |
toString()
Every implementation of this class should return pseudo xml like this: For FieldQueryNode: |
| Methods inherited from class org.apache.lucene.queryParser.core.nodes.QueryNodeImpl |
|---|
add, add, allocate, clone, containsTag, getChildren, getParent, getTag, getTags, isDefaultField, isLeaf, isRoot, set, setLeaf, setTag, unsetTag |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AnyQueryNode(java.util.List<QueryNode> clauses,
java.lang.CharSequence field,
int minimumMatchingElements)
clauses - - the query nodes to be or'ed| Method Detail |
|---|
public int getMinimumMatchingElements()
public java.lang.CharSequence getField()
public java.lang.String getFieldAsString()
public void setField(java.lang.CharSequence field)
field - - the field to set
public QueryNode cloneTree()
throws java.lang.CloneNotSupportedException
QueryNode
cloneTree in interface QueryNodecloneTree in class BooleanQueryNodejava.lang.CloneNotSupportedExceptionpublic java.lang.String toString()
QueryNodeImpl
toString in interface QueryNodetoString in class AndQueryNodeQueryNode.toString()public java.lang.CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser)
QueryNode
toQueryString in interface QueryNodetoQueryString in class AndQueryNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||