Create a new tuple with the specified schema (type). @param td the schema of this tuple. It must be a valid TupleDesc instance with at least one field.
(TupleDesc td)
| 35 | * instance with at least one field. |
| 36 | */ |
| 37 | public Tuple(TupleDesc td) { |
| 38 | // some code goes here |
| 39 | this.tupleDesc = td; |
| 40 | this.fieldList = new ArrayList<>(td.numFields()); |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * @return The TupleDesc representing the schema of this tuple. |