com.twitter.common.net.http.handlers
Class TimeSeriesDataSource

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.google.visualization.datasource.DataSourceServlet
              extended by com.twitter.common.net.http.handlers.TimeSeriesDataSource
All Implemented Interfaces:
com.google.visualization.datasource.DataTableGenerator, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class TimeSeriesDataSource
extends com.google.visualization.datasource.DataSourceServlet

A servlet that implements the Google Visuaization Data Source API and provides time series data. Queries supported: 'SELECT * LIMIT 0': Retrieve a listing of all available time series columns. 'SELECT $col': Select a specific column or set of columns. 'WHERE $filter': Row filter. 'LIMIT N': Limit the number of rows returned. 'OFFSET N': Skips the first N columns that would otherwise be returend.

See Also:
Serialized Form

Constructor Summary
TimeSeriesDataSource(TimeSeriesRepository timeSeriesRepo)
           
 
Method Summary
 com.google.visualization.datasource.datatable.DataTable generateDataTable(com.google.visualization.datasource.query.Query query, javax.servlet.http.HttpServletRequest request)
           
 com.google.visualization.datasource.Capabilities getCapabilities()
           
protected  boolean isRestrictedAccessMode()
           
 
Methods inherited from class com.google.visualization.datasource.DataSourceServlet
doGet, doPost
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeSeriesDataSource

@Inject
public TimeSeriesDataSource(TimeSeriesRepository timeSeriesRepo)
Method Detail

isRestrictedAccessMode

protected boolean isRestrictedAccessMode()
Overrides:
isRestrictedAccessMode in class com.google.visualization.datasource.DataSourceServlet

getCapabilities

public com.google.visualization.datasource.Capabilities getCapabilities()
Specified by:
getCapabilities in interface com.google.visualization.datasource.DataTableGenerator
Overrides:
getCapabilities in class com.google.visualization.datasource.DataSourceServlet

generateDataTable

public com.google.visualization.datasource.datatable.DataTable generateDataTable(com.google.visualization.datasource.query.Query query,
                                                                                 javax.servlet.http.HttpServletRequest request)
                                                                          throws com.google.visualization.datasource.base.DataSourceException
Throws:
com.google.visualization.datasource.base.DataSourceException