[ 
https://issues.apache.org/jira/browse/SOLR-8337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15026025#comment-15026025
 ] 

Dennis Gove commented on SOLR-8337:
-----------------------------------

I might change the operationExpressions line to get operands of type 
ReduceOperation.class. This would ensure that only expressions adhering to the 
ReduceOperation interface are returned. That said, from a user perspective it 
might be nice to be told you provided a StreamOperation when a ReduceOperation 
is expected.
{code}
List<StreamExpression> operationExpressions = 
factory.getExpressionOperandsRepresentingTypes(expression, 
ReduceOperation.class);
{code}


> Add ReduceOperation Interface
> -----------------------------
>
>                 Key: SOLR-8337
>                 URL: https://issues.apache.org/jira/browse/SOLR-8337
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Joel Bernstein
>         Attachments: SOLR-8337.patch, SOLR-8337.patch
>
>
> This is a very simple ticket to create new interface that extends the 
> StreamOperation. The interface will be called the ReduceOperation.
> In the near future the ReducerStream will be changed to accept a 
> ReduceOperation. This will allow users to pass in the specific reduce 
> algorithm to the ReducerStream, making the ReducerStream much more powerful.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to