com.google.visualization.datasource.query
Class ColumnSort

java.lang.Object
  extended by com.google.visualization.datasource.query.ColumnSort

public class ColumnSort
extends java.lang.Object

A sort definition for a single column. This class is immutable.

Author:
Yoah B.D.

Constructor Summary
ColumnSort(AbstractColumn column, SortOrder order)
          Construct and new column sort condition.
 
Method Summary
 AbstractColumn getColumn()
          Returns the column by which to sort.
 SortOrder getOrder()
          Returns the requested ordering.
 java.lang.String toQueryString()
          Creates a string that when fed to the query parser should return a ColumnSort equal to this one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnSort

public ColumnSort(AbstractColumn column,
                  SortOrder order)
Construct and new column sort condition.

Parameters:
column - The column by which to sort.
order - The requested ordering.
Method Detail

getColumn

public AbstractColumn getColumn()
Returns the column by which to sort.

Returns:
The column by which to sort.

getOrder

public SortOrder getOrder()
Returns the requested ordering.

Returns:
The requested ordering.

toQueryString

public java.lang.String toQueryString()
Creates a string that when fed to the query parser should return a ColumnSort equal to this one. Used mainly for debugging purposes.

Returns:
A query string.


Copyright © 2009 Google. All Rights Reserved.