|
||||||||||
| 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.ParametricRangeQueryNode
public class ParametricRangeQueryNode
A ParametricRangeQueryNode represents LE, LT, GE, GT, EQ, NE query.
Example: date >= "2009-10-10" OR price = 200
| Field Summary |
|---|
| Fields inherited from class org.apache.lucene.queryParser.core.nodes.QueryNodeImpl |
|---|
PLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields |
| Constructor Summary | |
|---|---|
ParametricRangeQueryNode(ParametricQueryNode lowerBound,
ParametricQueryNode upperBound)
|
|
| Method Summary | |
|---|---|
ParametricRangeQueryNode |
cloneTree()
Recursive clone the QueryNode tree The tags are not copied to the new tree when you call the cloneTree() method |
CharSequence |
getField()
Returns the field associated to the node and every node under it. |
ParametricQueryNode |
getLowerBound()
|
ParametricQueryNode |
getUpperBound()
|
void |
setField(CharSequence fieldName)
Associates the node to a field. |
CharSequence |
toQueryString(EscapeQuerySyntax escapeSyntaxParser)
convert to a query string understood by the query parser |
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 |
| Methods inherited from interface org.apache.lucene.queryParser.core.nodes.QueryNode |
|---|
add, add, containsTag, getChildren, getParent, getTag, getTags, isLeaf, set, setTag, unsetTag |
| Constructor Detail |
|---|
public ParametricRangeQueryNode(ParametricQueryNode lowerBound,
ParametricQueryNode upperBound)
| Method Detail |
|---|
public ParametricQueryNode getUpperBound()
public ParametricQueryNode getLowerBound()
public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser)
QueryNode
toQueryString in interface QueryNodepublic CharSequence getField()
FieldableNode
getField in interface FieldableNodepublic String toString()
QueryNodeImpl
toString in interface QueryNodetoString in class QueryNodeImplQueryNode.toString()
public ParametricRangeQueryNode cloneTree()
throws CloneNotSupportedException
QueryNode
cloneTree in interface QueryNodecloneTree in class QueryNodeImplCloneNotSupportedExceptionpublic void setField(CharSequence fieldName)
FieldableNode
setField in interface FieldableNodefieldName - the field name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||