Serializable
, Cloneable
, FieldableNode
, FieldValuePairQueryNode<CharSequence>
, QueryNode
, TextableQueryNode
, ValueQueryNode<CharSequence>
@Deprecated public class ParametricQueryNode extends FieldQueryNode
FieldQueryNode
should be used instead.ParametricQueryNode
represents LE, LT, GE, GT, EQ, NE query.
Example: date >= "2009-10-10" OR price = 200Modifier and Type | Class | Description |
---|---|---|
static class |
ParametricQueryNode.CompareOperator |
Deprecated.
|
begin, end, field, positionIncrement, text
PLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields
Constructor | Description |
---|---|
ParametricQueryNode(CharSequence field,
ParametricQueryNode.CompareOperator comp,
CharSequence value,
int begin,
int end) |
Deprecated.
|
Modifier and Type | Method | 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, add, containsTag, containsTag, getChildren, getParent, getTag, getTag, getTagMap, getTags, isLeaf, set, setTag, setTag, unsetTag, unsetTag
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()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.