MCPcopy Create free account
hub / github.com/apache/pig / map

Method map

test/org/apache/pig/test/utils/WordCount.java:80–90  ·  view source on GitHub ↗
(Object key, Text value, Context context
        )

Source from the content-addressed store, hash-verified

78 private Text word = new Text();
79
80 public void map(Object key, Text value, Context context
81 ) throws IOException, InterruptedException {
82 StringTokenizer itr = new StringTokenizer(value.toString());
83 while (itr.hasMoreTokens()) {
84 word.set(itr.nextToken());
85 if(stopWords.contains(word.toString())){
86 continue;
87 }
88 context.write(word, one);
89 }
90 }
91 }
92
93 public static class IntSumReducer

Callers 4

readFileMethod · 0.45
testTOMAP_TupleMethod · 0.45
testTOMAP_BagOfPairsMethod · 0.45
testMockStoreAndLoadMethod · 0.45

Calls 4

setMethod · 0.65
toStringMethod · 0.45
containsMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected