public abstract class QueryNode extends Object implements Node
Node.ParenMode
Constructor and Description |
---|
QueryNode() |
Modifier and Type | Method and Description |
---|---|
QueryNode |
add(Node... nodes)
Add children nodes to this node.
|
QueryNode |
add(String field,
Collection<Value> values)
Add a list of values from a collection
|
QueryNode |
add(String field,
String... values)
Convenience method to add a list of string values
|
QueryNode |
add(String field,
Value... values)
Add a match criteria to this node
|
protected abstract String |
getJoinString() |
protected boolean |
shouldUseParens(Node.ParenMode mode) |
String |
toString()
Returns the string form of this node.
|
String |
toString(Node.ParenMode parenMode)
Returns the string form of this node.
|
protected abstract String getJoinString()
public QueryNode add(String field, Value... values)
field
- The field to check. If null or empty, then any field is checkedvalues
- Values to check for.public QueryNode add(String field, String... values)
field
- Field to check forvalues
- One or more string values.public QueryNode add(String field, Collection<Value> values)
field
- The field to checkvalues
- Collection of values to matchpublic QueryNode add(Node... nodes)
nodes
- Children nodes to addprotected boolean shouldUseParens(Node.ParenMode mode)
public String toString(Node.ParenMode parenMode)
Node
Copyright © 2021 RedisLabs. All rights reserved.