Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support MapReduce #15

Open
firstprayer opened this issue Jan 8, 2015 · 0 comments
Open

Support MapReduce #15

firstprayer opened this issue Jan 8, 2015 · 0 comments

Comments

@firstprayer
Copy link
Owner

My idea is like this:

add a method mapreduce to the Table class:

def mapreduce(self, map_keys, reduce, prefilter=None, postfilter=None):
    """
    map_keys: a list or tuple of column names
    reduce: a dictionary of {name -> expression}. For example: {'people_num': {'$count': 'id'}}
    prefilter: filter out rows before map phase
    postfilter: filter out results after reduce phase
    return: a list of RowData
    """
    ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant