Class JsonCodec<T>

java.lang.Object
io.trino.client.JsonCodec<T>

public class JsonCodec<T> extends Object
  • Method Details

    • jsonCodec

      public static <T> JsonCodec<T> jsonCodec(Class<T> type)
    • getType

      public Type getType()
    • fromJson

      public T fromJson(String json) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • fromJson

      public T fromJson(InputStream inputStream) throws IOException
      Throws:
      IOException