Class Select

java.lang.Object
com.yahoo.search.query.Select
All Implemented Interfaces:
Cloneable

public class Select extends Object implements Cloneable
The parameters defining the where-clause and grouping of a query
Author:
henrhoi
  • Field Details

  • Constructor Details

    • Select

      public Select(Query query)
      Creates an empty select statement
    • Select

      public Select(String where, String grouping, Query query)
  • Method Details

    • getArgumentType

      public static QueryProfileType getArgumentType()
    • setWhereString

      public void setWhereString(String where)
      Sets the document selection criterion of the query.
      Parameters:
      where - the documents to select as a JSON string on the format specified in the select reference doc
    • getWhereString

      public String getWhereString()
      Returns the where clause string previously assigned, or an empty string if none
    • setGroupingString

      public void setGroupingString(String grouping)
      Sets the grouping operation of the query.
      Parameters:
      grouping - the grouping to perform as a JSON string on the format specified in the select reference doc
    • setGroupingExpressionString

      public void setGroupingExpressionString(String groupingExpressionString)
      Sets the grouping expression string directly. This will not be parsed by this but will be accessed later by GroupingQueryParser.
    • getGroupingExpressionString

      public String getGroupingExpressionString()
    • getGroupingString

      public String getGroupingString()
      Returns the grouping in the query
    • getGrouping

      public List<GroupingRequest> getGrouping()
      Returns the query's GroupingRequest as a mutable list. Changing this directly changes the grouping operations which will be performed by this query.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • cloneFor

      public Select cloneFor(Query parent)