All Known Implementing Classes:
InternalJacksonSerDes, JacksonDeserializer

@ThreadSafe public interface Deserializer
Converts query result rows into Java objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    deserialize(TypeRef<T> target, byte[] input)
    Deserializes raw input into the target type.
    <T> T
    deserialize(Class<T> target, byte[] input)
    Deserializes raw input into the target class.
  • Method Details

    • deserialize

      @Nullable <T> T deserialize(Class<T> target, byte[] input) throws IOException
      Deserializes raw input into the target class.
      Type Parameters:
      T - the generic type to deserialize into.
      Parameters:
      target - the target class.
      input - the raw input.
      Returns:
      the deserialized output.
      Throws:
      IOException
    • deserialize

      @Nullable <T> T deserialize(TypeRef<T> target, byte[] input) throws IOException
      Deserializes raw input into the target type.
      Type Parameters:
      T - the type to deserialize into.
      Parameters:
      target - the target type.
      input - the raw input.
      Returns:
      the deserialized output.
      Throws:
      IOException