org.apache.solr.analytics.expression

## Class ExpressionFactory

- java.lang.Object
- - org.apache.solr.analytics.expression.ExpressionFactory

-     public class ExpressionFactory
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ExpressionFactory()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Expression` | `create(String expression, StatsCollector[] statsCollectors)` Creates a single expression that contains delegate expressions and/or a StatsCollector.
    `static String[]` | `getArguments(String expression)` Splits up an Expression's arguments.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ExpressionFactory

          public ExpressionFactory()

  - ### Method Detail

    - #### create

          public static Expression create(String expression,
                                          StatsCollector[] statsCollectors)

      Creates a single expression that contains delegate expressions and/or a StatsCollector. StatsCollectors are given as input and not created within the method so that expressions can share the same StatsCollectors, minimizing computation.
      Parameters:
        `expression` - String representation of the desired expression
        `statsCollectors` - List of StatsCollectors to build the expression with.
      Returns:
        the expression

    - #### getArguments

          public static String[] getArguments(String expression)

      Splits up an Expression's arguments.
      Parameters:
        `expression` - Current expression string
      Returns:
        List The list of arguments

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.