org.dspace.statistics.content
Class StatisticsDataSearches

java.lang.Object
  extended by org.dspace.statistics.content.StatisticsData
      extended by org.dspace.statistics.content.StatisticsDataSearches

public class StatisticsDataSearches
extends StatisticsData

A statistics data implementation that will query the statistics backend for search 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)

Constructor Summary
StatisticsDataSearches(DSpaceObject dso)
           
 
Method Summary
 Dataset createDataset(Context context)
          Run the accumulated query and return its results.
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
 
Methods inherited from class org.dspace.statistics.content.StatisticsData
addDatasetGenerator, addFilters, getDataset, getDatasetGenerators, getFilters, setDataset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticsDataSearches

public StatisticsDataSearches(DSpaceObject dso)
Method Detail

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


Copyright © 2012 DuraSpace. All Rights Reserved.