- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for wordCount (0.04 seconds)
-
docs/bigdata/README.md
### **4.2 WordCount** WordCount is a simple program that counts how often a word occurs in a text file. The code builds a dataset of (String, Int) pairs called counts, and saves the dataset to a file. The following example submits WordCount code to the Scala shell. Select an input file for the Spark WordCount example. We can use any text file as input. - Login as user **‘spark’**.
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Aug 12 18:20:36 GMT 2025 - 14.7K bytes - Click Count (0) -
src/bufio/scan_test.go
s := NewScanner(buf) s.Split(ScanWords) words := strings.Fields(test) var wordCount int for wordCount = 0; wordCount < len(words); wordCount++ { if !s.Scan() { break } got := s.Text() if got != words[wordCount] { t.Errorf("#%d: %d: expected %q got %q", n, wordCount, words[wordCount], got) } } if s.Scan() { t.Errorf("#%d: scan ran too long, got %q", n, s.Text())
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Fri Sep 22 16:22:42 GMT 2023 - 14.3K bytes - Click Count (0)