|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.visualization.datasource.query.AbstractColumn
com.google.visualization.datasource.query.AggregationColumn
public class AggregationColumn
A column that is referred to by an aggregation, for example, min(c1).
| Field Summary | |
|---|---|
static java.lang.String |
COLUMN_AGGRGATION_TYPE_SEPARATOR
When creating the ID of the column, this separates the column on which aggregation is performed and the type of aggregation performed on it. |
| Constructor Summary | |
|---|---|
AggregationColumn(SimpleColumn aggregatedColumn,
AggregationType aggregationType)
Creates a new instance of this class with the given column and aggregation type. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
SimpleColumn |
getAggregatedColumn()
Returns the column to aggregate. |
AggregationType |
getAggregationType()
Returns the requested aggregation type. |
java.util.List<AggregationColumn> |
getAllAggregationColumns()
Returns a list of all aggregation columns. |
java.util.List<ScalarFunctionColumn> |
getAllScalarFunctionColumns()
Returns a list of all scalar function columns. |
java.util.List<java.lang.String> |
getAllSimpleColumnIds()
Returns a list of all simple (primitive) column IDs included in this AbstractColumn. |
java.util.List<SimpleColumn> |
getAllSimpleColumns()
Returns a list of all simple columns. |
java.lang.String |
getId()
Creates a string to act as ID for this column. |
ValueType |
getValueType(DataTable dataTable)
Returns the value type of the column. |
int |
hashCode()
|
java.lang.String |
toQueryString()
Returns a string that when parsed by the query parser, should return an identical column. |
java.lang.String |
toString()
This is for debug and error messages, not for ID generation. |
void |
validateColumn(DataTable dataTable)
Checks whether it makes sense to have the aggregation type on the aggregated column. |
| Methods inherited from class com.google.visualization.datasource.query.AbstractColumn |
|---|
getCell, getValue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String COLUMN_AGGRGATION_TYPE_SEPARATOR
| Constructor Detail |
|---|
public AggregationColumn(SimpleColumn aggregatedColumn,
AggregationType aggregationType)
aggregatedColumn - The column.aggregationType - The aggregation type.| Method Detail |
|---|
public java.lang.String getId()
getId in class AbstractColumnpublic SimpleColumn getAggregatedColumn()
public java.util.List<java.lang.String> getAllSimpleColumnIds()
AbstractColumn
getAllSimpleColumnIds in class AbstractColumnpublic java.util.List<SimpleColumn> getAllSimpleColumns()
getAllSimpleColumns in class AbstractColumnpublic java.util.List<AggregationColumn> getAllAggregationColumns()
getAllAggregationColumns in class AbstractColumnpublic java.util.List<ScalarFunctionColumn> getAllScalarFunctionColumns()
getAllScalarFunctionColumns in class AbstractColumnpublic AggregationType getAggregationType()
public void validateColumn(DataTable dataTable)
throws InvalidQueryException
validateColumn in class AbstractColumndataTable - The data table.
InvalidQueryException - Thrown if the column is invalid.public ValueType getValueType(DataTable dataTable)
getValueType in class AbstractColumndataTable - The data table.
public boolean equals(java.lang.Object o)
equals in class AbstractColumnpublic int hashCode()
hashCode in class AbstractColumnpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toQueryString()
toQueryString in class AbstractColumn
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||