crunch-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Danny Morgan <unlucky...@hotmail.com>
Subject RE: SecondarySort Order
Date Thu, 28 Aug 2014 01:07:24 GMT
Negating the longs worked just perfectly.

> Date: Wed, 27 Aug 2014 15:56:20 -0700
> Subject: Re: SecondarySort Order
> From: joseph.adler@gmail.com
> To: user@crunch.apache.org
> 
> Why don't you write a customer comparator and specify it in the config?
> 
> -- Joe
> 
> On Wed, Aug 27, 2014 at 3:36 PM, Josh Wills <jwills@cloudera.com> wrote:
> > Oh, then just negate it.
> >
> >
> > On Wed, Aug 27, 2014 at 3:34 PM, Danny Morgan <unluckyboy@hotmail.com>
> > wrote:
> >>
> >> No just numbers, the key is seconds since the epoch.
> >>
> >> ________________________________
> >> From: jwills@cloudera.com
> >> Date: Wed, 27 Aug 2014 15:27:00 -0700
> >> Subject: Re: SecondarySort Order
> >> To: user@crunch.apache.org
> >>
> >>
> >> Not without reversing the key in some sense-- easy to do with numbers,
> >> harder to do with strings. I assume your case is the latter?
> >>
> >>
> >> On Wed, Aug 27, 2014 at 1:26 PM, Danny Morgan <unluckyboy@hotmail.com>
> >> wrote:
> >>
> >> Any way to perform a secondary sort in descending order of K2 as below?
> >>
> >> PTable<K, Pair<K2, V>>
> >>
> >> Thanks,
> >>
> >> Danny
> >>
> >>
> >>
> >>
> >> --
> >> Director of Data Science
> >> Cloudera
> >> Twitter: @josh_wills
> >
> >
> >
> >
> > --
> > Director of Data Science
> > Cloudera
> > Twitter: @josh_wills
 		 	   		  
Mime
View raw message