Package com.yahoo.search.query
Class Select
- java.lang.Object
-
- com.yahoo.search.query.Select
-
- All Implemented Interfaces:
java.lang.Cloneable
public class Select extends java.lang.Object implements java.lang.Cloneable
The parameters defining the where-clause and grouping of a query- Author:
- henrhoi
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
Select
cloneFor(Query parent)
static QueryProfileType
getArgumentType()
java.util.List<GroupingRequest>
getGrouping()
Returns the query'sGroupingRequest
as a mutable list.java.lang.String
getGroupingExpressionString()
java.lang.String
getGroupingString()
Returns the grouping in the queryjava.lang.String
getWhereString()
Returns the where clause string previously assigned, or an empty string if nonevoid
setGroupingExpressionString(java.lang.String groupingExpressionString)
Sets the grouping expression string directly.void
setGroupingString(java.lang.String grouping)
Sets the grouping operation of the query.void
setWhereString(java.lang.String where)
Sets the document selection criterion of the query.java.lang.String
toString()
-
-
-
Field Detail
-
SELECT
public static final java.lang.String SELECT
- See Also:
- Constant Field Values
-
WHERE
public static final java.lang.String WHERE
- See Also:
- Constant Field Values
-
GROUPING
public static final java.lang.String GROUPING
- See Also:
- Constant Field Values
-
-
Method Detail
-
getArgumentType
public static QueryProfileType getArgumentType()
-
setWhereString
public void setWhereString(java.lang.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 java.lang.String getWhereString()
Returns the where clause string previously assigned, or an empty string if none
-
setGroupingString
public void setGroupingString(java.lang.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(java.lang.String groupingExpressionString)
Sets the grouping expression string directly. This will not be parsed by this but will be accessed later by GroupingQueryParser.
-
getGroupingExpressionString
public java.lang.String getGroupingExpressionString()
-
getGroupingString
public java.lang.String getGroupingString()
Returns the grouping in the query
-
getGrouping
public java.util.List<GroupingRequest> getGrouping()
Returns the query'sGroupingRequest
as a mutable list. Changing this directly changes the grouping operations which will be performed by this query.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classjava.lang.Object
-
-