[Bug 16854] New: mapreduce / ChuQL

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16854

           Summary: mapreduce / ChuQL
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3.1 Requirements and Use Cases
        AssignedTo: jonathan.robie@gmail.com
        ReportedBy: jonathan.robie@gmail.com
         QAContact: public-qt-comments@w3.org


ChuQL adds support for Map/Reduce to XQuery

mapreduce {
  input { fn:collection("hdfs://input/") }
  rr { for $line at $i in $in//line return { key: $i, val: $line } }
  map { for $word in fn:tokenize($in=>val, " ")
  return { key: $word, val: 1 } }
  reduce { { key: $in=>key, val: fn:count($in=>val) } }
  rw { <word text="{$in=>key}" count="{$in=>val}"/> }
  output { fn:put($in,"hdfs://output/") }
}

See ceur-ws.org/Vol-749/paper25.pdf.

Seems like a plausible feature that would make XQuery much more useful for Big
Data.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 25 April 2012 14:23:11 UTC