org.apache.solr.analytics.statistics

Class StatsCollectorSupplierFactory

  • java.lang.Object
    • org.apache.solr.analytics.statistics.StatsCollectorSupplierFactory
    • Method Detail

      • create

        public static Supplier<StatsCollector[]> create(IndexSchema schema,
                                                        List<ExpressionRequest> exRequests)
        Builds a Supplier that will generate identical arrays of new StatsCollectors.
        Parameters:
        schema - The Schema being used.
        exRequests - The expression requests to generate a StatsCollector[] from.
        Returns:
        A Supplier that will return an array of new StatsCollector.
      • getStatistics

        public static Set<StringgetStatistics(String expression)
        Finds the set of statistics that must be computed for the expression.
        Parameters:
        expression - The string representation of an expression
        Returns:
        The set of statistics (sum, mean, median, etc.) found in the expression