Class JoinQuery

java.lang.Object
org.ametys.cms.search.query.JoinQuery
All Implemented Interfaces:
Query
Direct Known Subclasses:
PageContentQuery, ProgramSearchable.ProgramThroughProgramPartsQuery

public class JoinQuery extends Object implements Query
Represents a Query on a joined document.
  • Field Details

  • Constructor Details

    • JoinQuery

      public JoinQuery(Query subQuery, String... joinPaths)
      Build a join query.
      Parameters:
      subQuery - The sub query.
      joinPaths - The field's join paths
    • JoinQuery

      public JoinQuery(Query subQuery, Collection<String> joinPaths)
      Build a join query.
      Parameters:
      subQuery - The sub query.
      joinPaths - The field's join paths
    • JoinQuery

      public JoinQuery(JoinKey... joinKeys)
      Build a join query.
      Parameters:
      joinKeys - The join paths and optional nested queries
    • JoinQuery

      public JoinQuery(Collection<JoinKey> joinKeys)
      Build a join query.
      Parameters:
      joinKeys - The join paths and optional nested queries
  • Method Details

    • build

      Description copied from interface: Query
      Build the solr query string representing the Query object.
      Specified by:
      build in interface Query
      Returns:
      the solr query string representing the Query object.
      Throws:
      QuerySyntaxException - if the query can't be built because of a syntax error.
    • toString

      public String toString(int indent)
      Description copied from interface: Query
      Gets a representation of this Query, for pretty-printing for logging and debugging purposes
      Specified by:
      toString in interface Query
      Parameters:
      indent - The current indentation. Base indentation is 2 (for printing a sub-level)
      Returns:
      a representation of this Query
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object