I think you are looking for
http://pig.apache.org/docs/r0.7.0/api/org/apache/pig/data/DataBag.html#isSorted()

If I'm not mistaken, if your initially loaded bag is sorted, then they
would still be sorted in your group. If it's not sorted, you can sort it
first.


On Thu, Jun 6, 2013 at 2:04 PM, Russell Jurney <[email protected]>wrote:

> https://gist.github.com/rjurney/5723520
>
> My cosine similarity UDF relies on the sorts being the same at line 10. Can
> I count on that?
>
> --
> Russell Jurney twitter.com/rjurney [email protected]
> datasyndrome.com
>

Reply via email to