cloudera/crunch — pull request #2 by eldenbishop (2011-10-14 17:33:41+00:00)
Title: Fix for https://github.com/cloudera/crunch/issues/1

I tightened up the changes so they affected the absolute minimum number of files and lines w/o affecting existing code or tests. I have not put in a "previously failing" test to exhibit the bug. I do have code for it though.

The general changes....

-- Tuple.java

added enum Typle.TupleType { PAIR, TUPLE3, TUPLE4, TUPLEN }
added method Tuple.tuplify(TupleType type, Object... values)

-- Writables.java and Avros.java

Usages of Tuple.tuplify(values) changed to Tuple.tuplify(type, values)
TupleType added to constructor of objects using tuplify

-- TupleTest.java
Updated TupleTest to verify the tuplify methods work as expected.