You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@crunch.apache.org by gr...@apache.org on 2014/01/08 15:06:51 UTC

svn commit: r1556538 - /crunch/site/trunk/content/intro.mdtext

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);
       }
     }