[ 
https://issues.apache.org/jira/browse/SOLR-9916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Gove updated SOLR-9916:
------------------------------
    Attachment: SOLR-9916.patch

Includes the following evaluators

{code}
StreamEvaluator
  ComplexEvaluator // evaluators allowing other StreamEvaluators as parameters 
(looking for better class name)
    NumberEvaluator // evaluators resulting in a Number return value
      AbsoluteValueEvaluator // abs(a)
      AddEvaluator // add(a,b,...,z)
      DivideEvaluator // div(a,b)
      MultiplyEvaluator // mult(a,b,...,z)
      SubtractEvaluator // sub(a,b)
    BooleanEvaluator // evaluators resulting in a Boolean return value
      AndEvaluator // and(a,b,...,z) == true iff all all true
      EqualsEvaluator // eq(a,b,...,z) == true iff all are equal
      GreaterThanEqualToEvaluator
      GreaterThanEvaluator
      LessThanEqualToEvaluator
      LessThanEvaluator
      OrEvaluator
    ConditionalEvaluator // evaluators performing a conditional and returning 
an Object based on the result
      IfThenElseEvaluator
  SimpleEvaluator // evaluators not allowing other StreamEvaluators as 
parameters (looking for a better class name)
    FieldEvaluator // return the value of the field - not something that needs 
to be expressed in the expression
{code}

Still needed:
* ValueEvaluator
* Addition Testing
* Handling of null raw value
* Additional evaluators

> Add arithmetic operations to the SelectStream
> ---------------------------------------------
>
>                 Key: SOLR-9916
>                 URL: https://issues.apache.org/jira/browse/SOLR-9916
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Joel Bernstein
>         Attachments: SOLR-9916.patch
>
>
> One of the things that will be needed as the SQL implementation matures is 
> the ability to do arithmetic operations. For example:
> select (a+b) from x;
> select sum(a)+sum(b) from x;
> We will need to support arithmetic operations within the Streaming API to 
> support these types of operations.
> It looks like adding arithmetic operations to the SelectStream is the best 
> place to add this functionality.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to