|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.visualization.datasource.query.QueryLabels
public class QueryLabels
Describes the labels of a Query, as passed in the query under the "label" clause. A label can optionally be specified for each column. If not specified, each column type has a default label.
| Constructor Summary | |
|---|---|
QueryLabels()
Default empty constructor, with no labels. |
|
| Method Summary | |
|---|---|
void |
addLabel(AbstractColumn column,
java.lang.String label)
Adds a column label. |
boolean |
equals(java.lang.Object obj)
|
java.util.List<AggregationColumn> |
getAggregationColumns()
Returns all the columns that are AggregationColumns. |
java.util.Set<AbstractColumn> |
getColumns()
Returns an immutable set of the columns for which a label was specified. |
java.lang.String |
getLabel(AbstractColumn column)
Returns the label of the specified column, or null if no label was specified. |
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))). |
int |
hashCode()
|
java.lang.String |
toQueryString()
Returns a string that when fed into the query parser, produces a QueryLabels equal to this one. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryLabels()
| Method Detail |
|---|
public void addLabel(AbstractColumn column,
java.lang.String label)
throws InvalidQueryException
column - The column to which the label is assigned.label - The assigned label.
InvalidQueryException - Thrown if the column is already specified.public java.lang.String getLabel(AbstractColumn column)
column - The column for which the label is required.
public java.util.Set<AbstractColumn> getColumns()
public java.util.List<ScalarFunctionColumn> getScalarFunctionColumns()
public java.util.List<AggregationColumn> getAggregationColumns()
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 | |||||||||