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 StatisticsDataSQLExceptionorg.apache.solr.client.solrj.SolrServerExceptionIOExceptionParseExceptionprotected String getQuery()
protected Map<String,Long> getTotalFacetCounts(DatasetTypeGenerator typeGenerator) throws org.apache.solr.client.solrj.SolrServerException
typeGenerator - the type generatororg.apache.solr.client.solrj.SolrServerExceptionprotected Date getOldestWorkflowItemDate() throws org.apache.solr.client.solrj.SolrServerException
org.apache.solr.client.solrj.SolrServerExceptionCopyright © 2016 DuraSpace. All Rights Reserved.