com.google.visualization.datasource.query
Class DataTableColumnLookup

java.lang.Object
  extended by com.google.visualization.datasource.query.DataTableColumnLookup
All Implemented Interfaces:
ColumnLookup

public class DataTableColumnLookup
extends java.lang.Object
implements ColumnLookup

An adapter between a data table and a column lookup. The table does not have to contain rows; only the columns data is used.

Author:
Liron L.

Constructor Summary
DataTableColumnLookup(DataTable table)
          Creates a new DataTableColumnLookup with the given data table.
 
Method Summary
 boolean containsColumn(AbstractColumn column)
          Returns whether or not this ColumnLookup contains the given column.
 int getColumnIndex(AbstractColumn column)
          Returns the index of the given column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataTableColumnLookup

public DataTableColumnLookup(DataTable table)
Creates a new DataTableColumnLookup with the given data table.

Parameters:
table - The given TableDescription.
Method Detail

getColumnIndex

public int getColumnIndex(AbstractColumn column)
Description copied from interface: ColumnLookup
Returns the index of the given column.

Specified by:
getColumnIndex in interface ColumnLookup
Parameters:
column - The given AbstractColumn.
Returns:
The index of the given column.

containsColumn

public boolean containsColumn(AbstractColumn column)
Description copied from interface: ColumnLookup
Returns whether or not this ColumnLookup contains the given column.

Specified by:
containsColumn in interface ColumnLookup
Parameters:
column - The column to check.
Returns:
True if column exists, false otherwise.


Copyright © 2009 Google. All Rights Reserved.