Class StatisticsData

    • Constructor Detail

      • StatisticsData

        protected StatisticsData()
        Construct a blank query factory.
      • StatisticsData

        protected StatisticsData​(Dataset dataset)
        Wrap an existing Dataset in an unconfigured query factory.
        Parameters:
        dataset - statistics dataset
    • Method Detail

      • addDatasetGenerator

        public void addDatasetGenerator​(DatasetGenerator set)
        Augment the list of facets (generators).
        Parameters:
        set - generator of statistics datasets
      • addFilters

        public void addFilters​(StatisticsFilter filter)
        Augment the list of filters.
        Parameters:
        filter - statistics filter
      • getDatasetGenerators

        public List<DatasetGenerator> getDatasetGenerators()
        Return the current list of generators.
        Returns:
        list of dataset generators
      • getFilters

        public List<StatisticsFilter> getFilters()
        Return the current list of filters.
        Returns:
        list of dataset filters
      • getDataset

        public Dataset getDataset()
        Return the existing query result if there is one.
        Returns:
        dataset existing query result dataset
      • setDataset

        public void setDataset​(Dataset dataset)
        Jam an existing query result in.
        Parameters:
        dataset - statistics dataset
      • createDataset

        public abstract Dataset createDataset​(Context context,
                                              int facetMinCount)
                                       throws SQLException,
                                              org.apache.solr.client.solrj.SolrServerException,
                                              IOException,
                                              ParseException
        Run the accumulated query and return its results.
        Parameters:
        context - The relevant DSpace Context.
        facetMinCount - Minimum count of results facet must have to return a result
        Returns:
        accumulated query results
        Throws:
        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 parsed