@Override
  @SuppressWarnings("unchecked")
  public R deserializeResource(byte[] input) {
    if (input == null) {
      return null;
    }
    return (R) kryoSerialize.deserializeResource(input);
  }
JavaSerializer Use KryoSerialize to serialize/deserialize java objects

@param <R>
amoro-common/src/main/java/org/apache/amoro/serialization/JavaSerializer.java