org.dspace.statistics.content
Class StatisticsData

java.lang.Object
  extended by org.dspace.statistics.content.StatisticsData
Direct Known Subclasses:
StatisticsDataVisits

public abstract class StatisticsData
extends Object

Abstract "factory" for statistical queries.

Author:
kevinvandevelde at atmire.com Date: 23-feb-2009 Time: 12:37:04

Constructor Summary
protected StatisticsData()
          Construct a blank query factory.
protected StatisticsData(Dataset dataset)
          Wrap an existing Dataset in an unconfigured query factory.
 
Method Summary
 void addDatasetGenerator(DatasetGenerator set)
          Augment the list of facets (generators).
 void addFilters(StatisticsFilter filter)
          Augment the list of filters.
abstract  Dataset createDataset(Context context)
          Run the accumulated query and return its results.
 Dataset getDataset()
          Return the existing query result if there is one.
 List<DatasetGenerator> getDatasetGenerators()
          Return the current list of generators.
 List<StatisticsFilter> getFilters()
          Return the current list of filters.
 void setDataset(Dataset dataset)
          Jam an existing query result in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticsData

protected StatisticsData()
Construct a blank query factory.


StatisticsData

protected StatisticsData(Dataset dataset)
Wrap an existing Dataset in an unconfigured query factory.

Method Detail

addDatasetGenerator

public void addDatasetGenerator(DatasetGenerator set)
Augment the list of facets (generators).


addFilters

public void addFilters(StatisticsFilter filter)
Augment the list of filters.


getDatasetGenerators

public List<DatasetGenerator> getDatasetGenerators()
Return the current list of generators.


getFilters

public List<StatisticsFilter> getFilters()
Return the current list of filters.


getDataset

public Dataset getDataset()
Return the existing query result if there is one.


setDataset

public void setDataset(Dataset dataset)
Jam an existing query result in.


createDataset

public abstract Dataset createDataset(Context context)
                               throws SQLException,
                                      org.apache.solr.client.solrj.SolrServerException,
                                      IOException,
                                      ParseException
Run the accumulated query and return its results.

Throws:
SQLException
org.apache.solr.client.solrj.SolrServerException
IOException
ParseException


Copyright © 2011 DuraSpace. All Rights Reserved.