Package org.ametys.cms.search.query.join
Class JoinKey
java.lang.Object
org.ametys.cms.search.query.join.JoinKey
Class representing a join key and its (optional) nested query for creating a
JoinQuery
-
Constructor Details
-
JoinKey
Creates a JoinKey- Parameters:
key
- The key. Cannot be null
-
JoinKey
Creates a JoinKey- Parameters:
key
- The key. Cannot be nullnestedQuery
- The nested query of the join key. Can be null
-
JoinKey
Creates a JoinKey- Parameters:
key
- The key. Cannot be nulljoinField
- the field to join on. Can be null in which case "id_dv" will be assumed on Solr side.nestedQuery
- The nested query of the join key. Can be null
-
-
Method Details
-
getKey
Gets the key of the JoinKey- Returns:
- the key of the JoinKey
-
getJoinField
Returns the join field, if any.- Returns:
- the join field, if any.
-
getNestedQuery
Gets the optional nested query of the join key- Returns:
- the optional nested query of the join key
-
build
- Parameters:
escape
- if the nested query should be escaped- Returns:
- a Solr query part
- Throws:
QuerySyntaxException
- if the query part can't be built because of a syntax error.
-
hashCode
-
equals
-
toString
-