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

Method exec

test/org/apache/pig/test/utils/FILTERFROMFILE.java:83–100  ·  view source on GitHub ↗
(Tuple input)

Source from the content-addressed store, hash-verified

81 }
82
83 @Override
84 public Boolean exec(Tuple input) throws IOException {
85 if (lookupTable == null){
86 init();
87 }
88 String s;
89 try {
90 s = input.get(0).toString();
91 } catch (ExecException e) {
92 IOException ioe = new IOException("Error getting data");
93 ioe.initCause(e);
94 throw ioe;
95 }
96
97 boolean matched = lookupTable.containsKey(s);
98
99 return(matched);
100 }
101}

Callers

nothing calls this directly

Calls 4

initMethod · 0.95
getMethod · 0.65
toStringMethod · 0.45
containsKeyMethod · 0.45

Tested by

no test coverage detected