|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.visualization.datasource.query.QuerySelection
public class QuerySelection
Selection definition for a query. Selection is defined as a list of column IDs. It can also include aggregations for grouping/pivoting and scalar functions.
| Constructor Summary | |
|---|---|
QuerySelection()
Construct an empty selection list. |
|
QuerySelection(QuerySelection source)
Copy constructor. |
|
| Method Summary | |
|---|---|
void |
addColumn(AbstractColumn column)
Adds a column to the column list. |
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 the list of columns. |
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<SimpleColumn> |
getSimpleColumns()
Returns all the columns that are SimpleColumns including those inside scalar function columns (e.g, year(a1)). |
int |
hashCode()
|
boolean |
isEmpty()
Returns true if the selection list is empty. |
java.lang.String |
toQueryString()
Returns a string that when fed to the query parser would produce an equal QuerySelection. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QuerySelection()
public QuerySelection(QuerySelection source)
source - The source query selection from which to construct.| Method Detail |
|---|
public boolean isEmpty()
public void addColumn(AbstractColumn column)
column - The column to select.public java.util.List<AbstractColumn> getColumns()
public java.util.List<AggregationColumn> getAggregationColumns()
public java.util.List<SimpleColumn> getSimpleColumns()
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 | |||||||||