java.lang.Object
com.couchbase.columnar.client.java.internal.InternalJacksonSerDes
All Implemented Interfaces:
Deserializer, JsonSerializer

@Internal public class InternalJacksonSerDes extends Object implements JsonSerializer, Deserializer
For internal SDK use only.
See Also:
Implementation Note:
The serializer is backed by a repackaged version of Jackson, but this is an implementation detail users should not depend on.

Be aware that this serializer does not recognize standard Jackson annotations.

  • Field Details

  • Method Details

    • serialize

      public byte[] serialize(Object input)
      Specified by:
      serialize in interface JsonSerializer
    • deserialize

      public <T> T deserialize(Class<T> target, byte[] input) throws IOException
      Description copied from interface: Deserializer
      Deserializes raw input into the target class.
      Specified by:
      deserialize in interface Deserializer
      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

      public <T> T deserialize(TypeRef<T> target, byte[] input) throws IOException
      Description copied from interface: Deserializer
      Deserializes raw input into the target type.
      Specified by:
      deserialize in interface Deserializer
      Type Parameters:
      T - the type to deserialize into.
      Parameters:
      target - the target type.
      input - the raw input.
      Returns:
      the deserialized output.
      Throws:
      IOException