You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Joel Bernstein (JIRA)" <ji...@apache.org> on 2015/11/24 21:04:11 UTC

[jira] [Commented] (SOLR-8337) Add ReduceOperation Interface

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

Joel Bernstein commented on SOLR-8337:
--------------------------------------

Patch adds a single *reduce()* method that returns a single Tuple, which is the final reduction.

The *operate(Tuple)* method will be called for each Tuple that is read by the *ReducerStream*.

The reduce() method will be called each time the group by key changes. This will give the ReduceOperation a chance to finish the reduce algorithm and return a single Tuple. The ReduceOperation will also clear it's internal memory after each call to reduce() to prepare for the next Tuple grouping.

> 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
>
>
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org