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

Method exec

test/org/apache/pig/test/TestPOUserFunc.java:55–64  ·  view source on GitHub ↗
(Tuple input)

Source from the content-addressed store, hash-verified

53 public static class ARITY extends EvalFunc<Integer> {
54
55 @Override
56 public Integer exec(Tuple input) throws IOException {
57 try {
58 return new Integer(((Tuple)input.get(0)).size());
59 } catch (ExecException e) {
60 // TODO Auto-generated catch block
61 e.printStackTrace();
62 }
63 return 0;
64 }
65
66 @Override
67 public Schema outputSchema(Schema input) {

Callers 1

testSIZEMethod · 0.95

Calls 2

sizeMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected