pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Pig Wiki] Update of "TuringCompletePig" by AlanGates
Date Tue, 22 Jun 2010 21:02:29 GMT
Dear Wiki user,

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

The "TuringCompletePig" page has been changed by AlanGates.
http://wiki.apache.org/pig/TuringCompletePig?action=diff&rev1=3&rev2=4

--------------------------------------------------

              Object outfile = new String("result.data");
              while (error != null && (Double)error > 1.0) {
                  PigServer ps = new PigServer();
-                 ps.registerQuery("A = load infile;");
+                 ps.registerQuery("A = load " + infile + ";");
                  ps.registerQuery("B = group A all;");
                  ps.registerQuery("C = foreach B generate flatten(doSomeCalculation(A)) as
(result, error);");
                  ps.registerQuery("error = foreach C generate error;");

Mime
View raw message