Skip to content

Composable, user-defined aggregators #1102

Closed

Description

@AtnNn

I think it is essential to be able to combine aggregators:

r.avg = fun x -> r.sum(x) / r.count()

And to have direct way to build these aggregators:

r.avg = fun x -> r.aggregator({
    map: fun row -> [row[x], 1],
    reduce: fun a b -> [a[0]+b[0], a[1]+b[1]],
    final: fun row -> row[0] / row[1]
})

Activity

  1. coffeemug commented on Jul 5, 2013

    @coffeemug
    Contributor

    Moving to backlog for now since this is a fairly low priority until gmr stuff gets done.

  2. coffeemug commented on Jan 14, 2014

    @coffeemug
    Contributor

    Closing -- this is now subsumed by #1725.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions