public abstract class StatisticsData extends Object
| Modifier and Type | Field and Description |
|---|---|
protected SolrLoggerService |
solrLoggerService |
| Modifier | Constructor and Description |
|---|---|
protected |
StatisticsData()
Construct a blank query factory.
|
protected |
StatisticsData(Dataset dataset)
Wrap an existing Dataset in an unconfigured query factory.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected final SolrLoggerService solrLoggerService
protected StatisticsData()
protected StatisticsData(Dataset dataset)
dataset - statistics datasetpublic void addDatasetGenerator(DatasetGenerator set)
set - generator of statistics datasetspublic void addFilters(StatisticsFilter filter)
filter - statistics filterpublic List<DatasetGenerator> getDatasetGenerators()
public List<StatisticsFilter> getFilters()
public Dataset getDataset()
public void setDataset(Dataset dataset)
dataset - statistics datasetpublic abstract Dataset createDataset(Context context) throws SQLException, org.apache.solr.client.solrj.SolrServerException, IOException, ParseException
context - The relevant DSpace Context.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 parsedCopyright © 2019 DuraSpace. All rights reserved.