Class JacksonUtils

java.lang.Object
org.apache.drill.common.util.JacksonUtils

public final class JacksonUtils extends Object
Utility class which contain methods for interacting with Jackson.
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.fasterxml.jackson.databind.json.JsonMapper.Builder
    Creates a new instance of the Jackson JsonMapper.Builder.
    static com.fasterxml.jackson.databind.json.JsonMapper.Builder
    createJsonMapperBuilder(com.fasterxml.jackson.core.JsonFactory factory)
    Creates a new instance of the Jackson JsonMapper.Builder.
    static com.fasterxml.jackson.databind.ObjectMapper
    Creates a new instance of the Jackson ObjectMapper.
    static com.fasterxml.jackson.databind.ObjectMapper
    createObjectMapper(com.fasterxml.jackson.core.JsonFactory factory)
    Creates a new instance of the Jackson ObjectMapper.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • createObjectMapper

      public static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper()
      Creates a new instance of the Jackson ObjectMapper.
      Returns:
      an ObjectMapper instance
    • createObjectMapper

      public static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper(com.fasterxml.jackson.core.JsonFactory factory)
      Creates a new instance of the Jackson ObjectMapper.
      Parameters:
      factory - a JsonFactory instance
      Returns:
      an ObjectMapper instance
    • createJsonMapperBuilder

      public static com.fasterxml.jackson.databind.json.JsonMapper.Builder createJsonMapperBuilder()
      Creates a new instance of the Jackson JsonMapper.Builder.
      Returns:
      an JsonMapper.Builder instance
    • createJsonMapperBuilder

      public static com.fasterxml.jackson.databind.json.JsonMapper.Builder createJsonMapperBuilder(com.fasterxml.jackson.core.JsonFactory factory)
      Creates a new instance of the Jackson JsonMapper.Builder.
      Parameters:
      factory - a JsonFactory instance
      Returns:
      an JsonMapper.Builder instance