Class QueryNode
java.lang.Object
redis.clients.jedis.search.querybuilder.QueryNode
- All Implemented Interfaces:
Node
- Direct Known Subclasses:
IntersectNode,UnionNode
-
Nested Class Summary
Nested classes/interfaces inherited from interface redis.clients.jedis.search.querybuilder.Node
Node.Parenthesize -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConvenience method to add a list of string valuesadd(String field, Collection<Value> values) Add a list of values from a collectionAdd a match criteria to this nodeAdd children nodes to this node.protected abstract Stringprotected booleantoString()Returns the string form of this node.toString(Node.Parenthesize parenMode) Returns the string form of this node.
-
Field Details
-
children
-
-
Constructor Details
-
QueryNode
public QueryNode()
-
-
Method Details
-
getJoinString
-
add
Add a match criteria to this node- Parameters:
field- The field to check. If null or empty, then any field is checkedvalues- Values to check for.- Returns:
- The current node, for chaining.
-
add
Convenience method to add a list of string values- Parameters:
field- Field to check forvalues- One or more string values.- Returns:
- The current node, for chaining.
-
add
Add a list of values from a collection- Parameters:
field- The field to checkvalues- Collection of values to match- Returns:
- The current node for chaining.
-
add
Add children nodes to this node.- Parameters:
nodes- Children nodes to add- Returns:
- The current node, for chaining.
-
shouldParenthesize
-
toString
Description copied from interface:NodeReturns the string form of this node. -
toString
Description copied from interface:NodeReturns the string form of this node. This may be passed toUnifiedJedis.ftSearch(String, Query)
-