FieldQueryNode
should be used instead.@Deprecated public class ParametricQueryNode extends FieldQueryNode
ParametricQueryNode
represents LE, LT, GE, GT, EQ, NE query.
Example: date >= "2009-10-10" OR price = 200Modifier and Type | Class and Description |
---|---|
static class |
ParametricQueryNode.CompareOperator
Deprecated.
|
begin, end, field, positionIncrement, text
PLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields
Constructor and Description |
---|
ParametricQueryNode(CharSequence field,
ParametricQueryNode.CompareOperator comp,
CharSequence value,
int begin,
int end)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ParametricQueryNode |
cloneTree()
Deprecated.
Recursive clone the QueryNode tree The tags are not copied to the new tree
when you call the cloneTree() method
|
CharSequence |
getOperand()
Deprecated.
|
ParametricQueryNode.CompareOperator |
getOperator()
Deprecated.
|
CharSequence |
toQueryString(EscapeQuerySyntax escapeSyntaxParser)
Deprecated.
convert to a query string understood by the query parser
|
String |
toString()
Deprecated.
Every implementation of this class should return pseudo xml like this:
For FieldQueryNode:
|
getBegin, getEnd, getField, getFieldAsString, getPositionIncrement, getTermEscaped, getTermEscapeQuoted, getText, getTextAsString, getValue, setBegin, setEnd, setField, setPositionIncrement, setText, setValue
add, add, allocate, clone, containsTag, containsTag, getChildren, getParent, getTag, getTag, getTagMap, getTags, isDefaultField, isLeaf, isRoot, set, setLeaf, setTag, setTag, unsetTag, unsetTag
public ParametricQueryNode(CharSequence field, ParametricQueryNode.CompareOperator comp, CharSequence value, int begin, int end)
field
- - field namecomp
- - CompareOperatorvalue
- - text valuebegin
- - position in the query stringend
- - position in the query stringpublic CharSequence getOperand()
public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser)
QueryNode
toQueryString
in interface QueryNode
toQueryString
in class FieldQueryNode
public String toString()
QueryNodeImpl
toString
in interface QueryNode
toString
in class FieldQueryNode
QueryNode.toString()
public ParametricQueryNode cloneTree() throws CloneNotSupportedException
QueryNode
cloneTree
in interface QueryNode
cloneTree
in class FieldQueryNode
CloneNotSupportedException
public ParametricQueryNode.CompareOperator getOperator()