|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.visualization.datasource.query.QuerySort
public class QuerySort
Sorting definition for a query. Sort is defined as a list of column sorts where the first is the primary sort order, the second is the secondary sort order, etc.
| Constructor Summary | |
|---|---|
QuerySort()
Constructs an empty sort list. |
|
| Method Summary | |
|---|---|
void |
addSort(AbstractColumn column,
SortOrder order)
Adds a column sort condition. |
void |
addSort(ColumnSort columnSort)
Adds a column sort condition. |
boolean |
equals(java.lang.Object obj)
|
java.util.List<AggregationColumn> |
getAggregationColumns()
Returns all the columns that are AggregationColumns including aggregation columns that are inside scalar function columns (e.g., year(min(a1))). |
java.util.List<AbstractColumn> |
getColumns()
Returns a list of columns held by this query sort. |
java.util.List<ScalarFunctionColumn> |
getScalarFunctionColumns()
Returns all the columns that are ScalarFunctionColumns including scalar functions columns that are inside other scalar function columns (e.g., sum(year(a), year(b))). |
java.util.List<ColumnSort> |
getSortColumns()
Returns the list of sort columns. |
int |
hashCode()
|
boolean |
isEmpty()
Returns true if the sort list is empty. |
java.lang.String |
toQueryString()
Returns a string that when fed to the query parser would produce an equal QuerySort. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QuerySort()
| Method Detail |
|---|
public boolean isEmpty()
public void addSort(ColumnSort columnSort)
columnSort - The column sort condition.
public void addSort(AbstractColumn column,
SortOrder order)
column - The column to sort by.order - The requested ordering.public java.util.List<ColumnSort> getSortColumns()
public java.util.List<AbstractColumn> getColumns()
public java.util.List<AggregationColumn> getAggregationColumns()
public java.util.List<ScalarFunctionColumn> getScalarFunctionColumns()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toQueryString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||