Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix indentation in example.
  • Loading branch information
Argyris Zymnis committed Jan 12, 2012
1 parent 26f00d8 commit 6949568
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README.md
Expand Up @@ -13,18 +13,18 @@ You should follow the scalding project on twitter: <http://twitter.com/scalding>
## Word Count
Hadoop is a distributed system for counting words. Here is how it's done in scalding. You can find this in examples:

```scala
package com.twitter.scalding.examples

import com.twitter.scalding._

class WordCountJob(args : Args) extends Job(args) {
TextLine( args("input") ).read.
flatMap('line -> 'word) { line : String => line.split("\\s+") }.
groupBy('word) { _.size }.
write( Tsv( args("output") ) )
}
```
```scala
package com.twitter.scalding.examples

import com.twitter.scalding._

class WordCountJob(args : Args) extends Job(args) {
TextLine( args("input") ).read.
flatMap('line -> 'word) { line : String => line.split("\\s+") }.
groupBy('word) { _.size }.
write( Tsv( args("output") ) )
}
```

##Tutorial
See tutorial/ for examples of how to use the DSL. See tutorial/CodeSnippets.md for some
Expand Down

0 comments on commit 6949568

Please sign in to comment.