public static <T extends Serializable> T deserializeObjectFromKryo(byte[] bytes, Class<T> clazz) {
    Input inp = new Input(new ByteArrayInputStream(bytes));
    Kryo kryo = borrowKryo();
    T func = null;
    try {
      func = kryo.readObject(inp, clazz);
    } finally {
      releaseKryo(kryo);
    }
    inp.close();
    return func;
  }
Deserializes expression from Kryo.
@param bytes Bytes containing the expression.
@param isPartFilter ture if it is a partition filter
@return Expression; null if deserialization succeeded, but the result type is incorrect.
ql/src/java/org/apache/hadoop/hive/ql/exec/SerializationUtilities.java