I'm confused here.
How can sorting be handled in any reasonable way with AggregateBy? The mappers are going to do aggregation before sending to the reducers. Am I missing the use case?
--
Oscar Boykin :: @posco ::
https://twitter.com/intent/user?screen_name=posco
On Monday, June 4, 2012 at 6:55 AM, Chris K Wensel wrote:
> good catch. will make something available soon.
>
> ckw
> On Jun 1, 2012, at 10:38 AM, Ken Krugler wrote:
> > Hi Chris,
> >
> > While looking into implementing a FirstBy, I was expecting that I could specify sorting fields in the AggregateBy constructor.
> >
> > This would then let me efficiently use First as my aggregator.
> >
> > But AggregateBy currently doesn't let you specify sorting.
> >
> > In the 1.2.5 code it looks like this would be a trivial change, as it would just get used in the initialize() method when setting up the GroupBy:
> >
> > Pipe pipe = new GroupBy( name, functions, groupingFields );
> >
> > -- Ken
> >
> > --------------------------
> > Ken Krugler
> >
http://www.scaleunlimited.com (
http://www.scaleunlimited.com/)
> > custom big data solutions & training
> > Hadoop, Cascading, Mahout & Solr
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > You received this message because you are subscribed to the Google Groups "cascading-user" group.
> > To post to this group, send email to
cascadi...@googlegroups.com (mailto:
cascadi...@googlegroups.com).
> > To unsubscribe from this group, send email to
cascading-use...@googlegroups.com (mailto:
cascading-use...@googlegroups.com).
>
ch...@concurrentinc.com (mailto:
ch...@concurrentinc.com)
>
http://concurrentinc.com
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "cascading-user" group.
> To post to this group, send email to
cascadi...@googlegroups.com (mailto:
cascadi...@googlegroups.com).
> To unsubscribe from this group, send email to
cascading-use...@googlegroups.com (mailto:
cascading-use...@googlegroups.com).