incubator-hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hama Wiki] Update of "Shell" by SamuelGuo
Date Wed, 17 Sep 2008 13:13:41 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hama Wiki" for change notification.

The following page has been changed by SamuelGuo:
http://wiki.apache.org/hama/Shell

------------------------------------------------------------------------------
  Load      load the matrix from the matrix file using user specified !MapReduce class. 
            for example:
   
-           hama> a = load "fileA" as Matrix using !MyMapReduce.class; 
+           hama> a = load "fileA" as Matrix using MyMapReduce.class MAP 10 REDUCE 1; 
-           hama> b = load "fileB" as Matrix using !MyMapReduce.class;
+           hama> b = load "fileB" as Matrix using MyMapReduce.class;
  
  Add      the matrix addition. 
            such as : 
@@ -27, +27 @@

            hama> save c as "fileC".
  }}}
  
+ == Grammar ==
+ {{{
+ <hamascript> := <expr> ";"
+ 
+ <expr> := [<alias> "="] <baseexpr> ["MAP" <integer>] ["REDUCE" <integer>]
| "SAVE" <saveexpr>
+ 
+ <baseexpr> := <operationexpr> | "LOAD" <loadexpr>
+ 
+ <operationexpr> := <alias> | <operationexpr> <operations> <operationexpr>
| "(" <operationexpr> ")" 
+ 
+ <operations> := "+" | "-" | "*"
+ 
+ <loadexpr> := <filename> "as" <type> ["USING" <loadclass> ["MAP"
<integer>] ["REDUCE" <integer>] ]
+ 
+ <type> := "matrix"
+ 
+ <loadclass> := <quotedstring>
+ 
+ <saveexpr> := <alias> "as" <filename>
+ 
+ <filename> := <quotedstring>
+ 
+ <quotedstring> := "'"<string>"'"
+ }}}
+ 
  '' Still in work... ''
  

Mime
View raw message