public class StatisticsDataWorkflow extends StatisticsData
solrLoggerService| Constructor and Description |
|---|
StatisticsDataWorkflow(DSpaceObject dso,
int averageMonths) |
| Modifier and Type | Method and Description |
|---|---|
Dataset |
createDataset(Context context)
Run the accumulated query and return its results.
|
protected Date |
getOldestWorkflowItemDate() |
protected String |
getQuery()
Returns the query to be used in solr
in case of a dso a scopeDso query will be returned otherwise the default *:* query will be used
|
protected Map<String,Long> |
getTotalFacetCounts(DatasetTypeGenerator typeGenerator)
Retrieve the total counts for the facets (total count is same query but none of the filter queries).
|
addDatasetGenerator, addFilters, getDataset, getDatasetGenerators, getFilters, setDatasetpublic StatisticsDataWorkflow(DSpaceObject dso, int averageMonths)
public Dataset createDataset(Context context) throws SQLException, org.apache.solr.client.solrj.SolrServerException, IOException, ParseException
StatisticsDatacreateDataset in class StatisticsDatacontext - 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 parsedprotected String getQuery()
protected Map<String,Long> getTotalFacetCounts(DatasetTypeGenerator typeGenerator) throws org.apache.solr.client.solrj.SolrServerException, IOException
typeGenerator - the type generatororg.apache.solr.client.solrj.SolrServerException - passed through.IOException - passed through.protected Date getOldestWorkflowItemDate() throws org.apache.solr.client.solrj.SolrServerException, IOException
org.apache.solr.client.solrj.SolrServerExceptionIOExceptionCopyright © 2019 DuraSpace. All rights reserved.