Package org.dspace.statistics.content
Class StatisticsData
java.lang.Object
org.dspace.statistics.content.StatisticsData
- Direct Known Subclasses:
StatisticsDataSearches,StatisticsDataVisits,StatisticsDataWorkflow
Abstract "factory" for statistical queries.
- Author:
- kevinvandevelde at atmire.com Date: 23-feb-2009 Time: 12:37:04
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstruct a blank query factory.protectedStatisticsData(Dataset dataset) Wrap an existing Dataset in an unconfigured query factory. -
Method Summary
Modifier and TypeMethodDescriptionvoidAugment the list of facets (generators).voidaddFilters(StatisticsFilter filter) Augment the list of filters.abstract DatasetcreateDataset(Context context, int facetMinCount) Run the accumulated query and return its results.Return the existing query result if there is one.Return the current list of generators.Return the current list of filters.voidsetDataset(Dataset dataset) Jam an existing query result in.
-
Field Details
-
solrLoggerService
-
-
Constructor Details
-
StatisticsData
protected StatisticsData()Construct a blank query factory. -
StatisticsData
Wrap an existing Dataset in an unconfigured query factory.- Parameters:
dataset- statistics dataset
-
-
Method Details
-
addDatasetGenerator
Augment the list of facets (generators).- Parameters:
set- generator of statistics datasets
-
addFilters
Augment the list of filters.- Parameters:
filter- statistics filter
-
getDatasetGenerators
Return the current list of generators.- Returns:
- list of dataset generators
-
getFilters
Return the current list of filters.- Returns:
- list of dataset filters
-
getDataset
Return the existing query result if there is one.- Returns:
- dataset existing query result dataset
-
setDataset
Jam an existing query result in.- Parameters:
dataset- statistics dataset
-
createDataset
public abstract Dataset createDataset(Context context, int facetMinCount) throws SQLException, org.apache.solr.client.solrj.SolrServerException, IOException, ParseException Run the accumulated query and return its results.- Parameters:
context- The relevant DSpace Context.facetMinCount- Minimum count of results facet must have to return a result- Returns:
- accumulated query results
- Throws:
SQLException- An exception that provides information on a database access error or other errors.org.apache.solr.client.solrj.SolrServerException- Exception from the Solr server to the solrj Java client.IOException- A general class of exceptions produced by failed or interrupted I/O operations.ParseException- if the dataset cannot be parsed
-