public static List<Object> deserializeRow(byte[] keyBytes, int keyOffset, int keyLength,
      BytesWritable bytesWritable, AbstractSerDe serde) throws HiveException {
    try {
      bytesWritable.set(keyBytes, keyOffset, keyLength);
      return (List<Object>) serde.deserialize(bytesWritable);
    } catch (SerDeException e) {
      throw new HiveException("Serialization error", e);
    }
  }
Serializes row to output.
@param byteStream Output to reuse. Can be null, in that case a new one would be created.
ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/MapJoinKey.java