You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Dennis Gove (JIRA)" <ji...@apache.org> on 2015/10/27 12:17:27 UTC

[jira] [Updated] (SOLR-8198) Change ReducerStream to use StreamEqualitor instead of StreamComparator

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

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

All tests pass.

> Change ReducerStream to use StreamEqualitor instead of StreamComparator
> -----------------------------------------------------------------------
>
>                 Key: SOLR-8198
>                 URL: https://issues.apache.org/jira/browse/SOLR-8198
>             Project: Solr
>          Issue Type: Improvement
>          Components: SolrJ
>            Reporter: Dennis Gove
>            Priority: Minor
>         Attachments: SOLR-8198.patch
>
>
> Currently the ReducerStream uses a StreamComparator to determine whether tuples are equal. StreamEqualitors are a simplified version of a comparator in that they do not require a sort to be provided. Using the function getStreamSort we are still able to validate the incoming stream's sort and pass that on up to any parent stream which might require it.
> This will simplify the use of the ReducerStream in join scenarios where the reducer is used to find like records. Such a scenario exists with Inner/Outer JoinStream, ComplementStream, and [Outer]HashJoinStreams.



--
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