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

Method exec

tutorial/src/org/apache/pig/tutorial/ToLower.java:36–46  ·  view source on GitHub ↗
(Tuple input)

Source from the content-addressed store, hash-verified

34 */
35public class ToLower extends EvalFunc<String> {
36 public String exec(Tuple input) throws IOException {
37 if(input == null || input.size() == 0)
38 return null;
39 try{
40 String query = (String)input.get(0);
41 return query.toLowerCase().trim();
42 }catch(Exception e){
43 System.err.println("ToLower: failed to process input; error - " + e.getMessage());
44 return null;
45 }
46 }
47
48 @Override
49 /**

Callers 3

testDataAtomEvalsMethod · 0.45
testDataBagEvalsMethod · 0.45
testFiltersMethod · 0.45

Calls 3

sizeMethod · 0.65
getMethod · 0.65
getMessageMethod · 0.45

Tested by 3

testDataAtomEvalsMethod · 0.36
testDataBagEvalsMethod · 0.36
testFiltersMethod · 0.36