org.dspace.statistics.content
Class StatisticsDataWorkflow
java.lang.Object
org.dspace.statistics.content.StatisticsData
org.dspace.statistics.content.StatisticsDataWorkflow
public class StatisticsDataWorkflow
- extends StatisticsData
A workflow data implementation that will query the statistics backend for workflow information
- Author:
- Kevin Van de Velde (kevin at atmire dot com), Ben Bosman (ben at atmire dot com), Mark Diggory (markd at atmire dot com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatisticsDataWorkflow
public StatisticsDataWorkflow(DSpaceObject dso,
int averageMonths)
createDataset
public Dataset createDataset(Context context)
throws SQLException,
org.apache.solr.client.solrj.SolrServerException,
IOException,
ParseException
- Description copied from class:
StatisticsData
- Run the accumulated query and return its results.
- Specified by:
createDataset in class StatisticsData
- Throws:
SQLException
org.apache.solr.client.solrj.SolrServerException
IOException
ParseException
getQuery
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
- Returns:
- the query as a string
getTotalFacetCounts
protected Map<String,Long> getTotalFacetCounts(DatasetTypeGenerator typeGenerator)
throws org.apache.solr.client.solrj.SolrServerException
- Retrieve the total counts for the facets (total count is same query but none of the filter queries
- Parameters:
typeGenerator - the type generator
- Returns:
- as a key the
- Throws:
org.apache.solr.client.solrj.SolrServerException
getOldestWorkflowItemDate
protected Date getOldestWorkflowItemDate()
throws org.apache.solr.client.solrj.SolrServerException
- Throws:
org.apache.solr.client.solrj.SolrServerException
Copyright © 2012 DuraSpace. All Rights Reserved.