(Tuple input)
| 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) { |