(Tuple t)
| 44 | public abstract class PigStreamingBase implements PigToStream, StreamToPig { |
| 45 | |
| 46 | @Override |
| 47 | @Deprecated |
| 48 | public final byte[] serialize(Tuple t) throws IOException { |
| 49 | WritableByteArray data = serializeToBytes(t); |
| 50 | if (data.getLength() == data.getData().length) { |
| 51 | return data.getData(); |
| 52 | } else { |
| 53 | byte[] buf = new byte[data.getLength()]; |
| 54 | System.arraycopy(data.getData(), 0, buf, 0, data.getLength()); |
| 55 | return buf; |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * Given a tuple, produce an array of bytes to be passed to the streaming |
nothing calls this directly
no test coverage detected