crunch-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gr...@apache.org
Subject svn commit: r1556538 - /crunch/site/trunk/content/intro.mdtext
Date Wed, 08 Jan 2014 14:06:51 GMT
Author: greid
Date: Wed Jan  8 14:06:50 2014
New Revision: 1556538

URL: http://svn.apache.org/r1556538
Log:
Correct PTable#materializeToMap() call in example code

Modified:
    crunch/site/trunk/content/intro.mdtext

Modified: crunch/site/trunk/content/intro.mdtext
URL: http://svn.apache.org/viewvc/crunch/site/trunk/content/intro.mdtext?rev=1556538&r1=1556537&r2=1556538&view=diff
==============================================================================
--- crunch/site/trunk/content/intro.mdtext (original)
+++ crunch/site/trunk/content/intro.mdtext Wed Jan  8 14:06:50 2014
@@ -157,7 +157,7 @@ application:
       @Test
       public void testWordCount() throws Exception {
         PCollection<String> lines = MemPipeline.collectionOf("first line", "second
line");
-        Map<String, Long> counts = WordCount.countWords(lines).materializeAsMap();
+        Map<String, Long> counts = WordCount.countWords(lines).materializeToMap();
         assertEquals(ImmutableMap.of("first", 1L, "second", 1L, "line", 2L), counts);
       }
     }



Mime
View raw message