|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.visualization.datasource.query.AbstractColumn
public abstract class AbstractColumn
A column. This can be either a column by ID, or an aggregation column such as min(c1), etc.
| Constructor Summary | |
|---|---|
AbstractColumn()
|
|
| Method Summary | |
|---|---|
abstract boolean |
equals(java.lang.Object o)
|
abstract java.util.List<AggregationColumn> |
getAllAggregationColumns()
Returns a list of all aggregation columns included in this abstract column. |
abstract java.util.List<ScalarFunctionColumn> |
getAllScalarFunctionColumns()
Returns a list of all scalar function columns included in this abstract column. |
abstract java.util.List<java.lang.String> |
getAllSimpleColumnIds()
Returns a list of all simple (primitive) column IDs included in this AbstractColumn. |
abstract java.util.List<SimpleColumn> |
getAllSimpleColumns()
Returns a list of all simple columns included in this abstract column. |
TableCell |
getCell(ColumnLookup lookup,
TableRow row)
Returns the cell of the column in the given row. |
abstract java.lang.String |
getId()
Returns a string ID for this column. |
Value |
getValue(ColumnLookup lookup,
TableRow row)
Returns the value of the column in the given row. |
abstract ValueType |
getValueType(DataTable dataTable)
Returns the value type of the column. |
abstract int |
hashCode()
|
abstract java.lang.String |
toQueryString()
Returns a string that when parsed by the query parser, should return an identical column. |
abstract void |
validateColumn(DataTable dataTable)
Checks whether the column is valid. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractColumn()
| Method Detail |
|---|
public abstract java.lang.String getId()
public abstract java.util.List<java.lang.String> getAllSimpleColumnIds()
public Value getValue(ColumnLookup lookup,
TableRow row)
row - The given row.lookup - The column lookup.
public TableCell getCell(ColumnLookup lookup,
TableRow row)
row - The given row.lookup - The column lookup.
public abstract java.util.List<SimpleColumn> getAllSimpleColumns()
public abstract java.util.List<AggregationColumn> getAllAggregationColumns()
public abstract java.util.List<ScalarFunctionColumn> getAllScalarFunctionColumns()
public abstract void validateColumn(DataTable dataTable)
throws InvalidQueryException
dataTable - The data table.
InvalidQueryException - Thrown if the column is not valid.public abstract ValueType getValueType(DataTable dataTable)
dataTable - The data table.
public abstract java.lang.String toQueryString()
public abstract boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic abstract int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||