public class JoinQuery extends Object implements Query
Query on a joined document.Query.LogicalOperator, Query.Operator| Modifier and Type | Field and Description |
|---|---|
protected Collection<JoinKey> |
_joinKeys
The join keys (paths and optional nested queries)
|
protected Query |
_subQuery
The field path.
|
| Constructor and Description |
|---|
JoinQuery(Collection<JoinKey> joinKeys)
Build a join query.
|
JoinQuery(JoinKey... joinKeys)
Build a join query.
|
JoinQuery(Query subQuery,
Collection<String> joinPaths)
Build a join query.
|
JoinQuery(Query subQuery,
String... joinPaths)
Build a join query.
|
| Modifier and Type | Method and Description |
|---|---|
private String |
_buildQuery(Query query) |
private void |
_checkJoinParams() |
private void |
_checkValidPathNames() |
String |
build()
Build the solr query string representing the Query object.
|
boolean |
equals(Object obj) |
int |
hashCode() |
protected Collection<JoinKey> _joinKeys
public JoinQuery(Query subQuery, String... joinPaths)
subQuery - The sub query.joinPaths - The field's join pathspublic JoinQuery(Query subQuery, Collection<String> joinPaths)
subQuery - The sub query.joinPaths - The field's join pathspublic JoinQuery(JoinKey... joinKeys)
joinKeys - The join paths and optional nested queriespublic JoinQuery(Collection<JoinKey> joinKeys)
joinKeys - The join paths and optional nested queriesprivate void _checkValidPathNames()
private void _checkJoinParams()
public String build() throws QuerySyntaxException
Querybuild in interface QueryQuerySyntaxException - if the query can't be built because of a syntax error.private String _buildQuery(Query query) throws QuerySyntaxException
QuerySyntaxException