public interface DataSet extends Visualizer
| Modifier and Type | Method and Description |
|---|---|
String |
getDataSource()
Return the datasource.
|
String |
getDataSourceName()
In some cases, we may want to return a string that isn't the full
datasource string or something different.
|
Date |
getDate()
Return the Date object using the start timestamp
|
long |
getEndTimestamp()
return the timestamp in millisecond format.
|
String |
getMonthDayDate()
convienance method for getting the date in mmdd format
|
String |
getMonthDayYearDate()
convienant method for getting the date in yyyymmdd format
|
long |
getStartTimestamp()
return the timestamp in millisecond format.
|
SamplingStatCalculator |
getStatistics(String url)
Return the SamplingStatCalculator for a specific URL.
|
Set<SamplingStatCalculator> |
getStats()
Classes implementing the method should return instance of
SamplingStatCalculator.
|
List<SamplingStatCalculator> |
getStats(List urls)
Convenience method for getting all the SamplingStatCalculators for
a given URL.
|
Set<?> |
getURLs()
Classes implementing the method should return the URL's in the
DataSet.
|
void |
loadData()
Classes implementing the method should load the data from
the target location.
|
void |
setDataSource(String datasource)
Depending on the implementation, the datasouce could be a file
or a RDBMS.
|
void |
setEndTimestamp(long stamp)
Set the timestamp using the last result from the datasource
|
void |
setStartTimestamp(long stamp)
Set the timestamp using the first result from the datasource
|
add, isStatsvoid setDataSource(String datasource)
datasource - String getDataSource()
String getDataSourceName()
void setStartTimestamp(long stamp)
stamp - long getStartTimestamp()
void setEndTimestamp(long stamp)
stamp - long getEndTimestamp()
Date getDate()
String getMonthDayDate()
String getMonthDayYearDate()
Set<?> getURLs()
Set<SamplingStatCalculator> getStats()
SamplingStatCalculator getStatistics(String url)
url - List<SamplingStatCalculator> getStats(List urls)
urls - void loadData()
Copyright © 1998-2015 Apache Software Foundation. All Rights Reserved.