Package org.apache.iceberg.util
Class JsonUtil
- java.lang.Object
-
- org.apache.iceberg.util.JsonUtil
-
public class JsonUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.fasterxml.jackson.core.JsonFactory
factory()
static boolean
getBool(java.lang.String property, com.fasterxml.jackson.databind.JsonNode node)
static int
getInt(java.lang.String property, com.fasterxml.jackson.databind.JsonNode node)
static java.util.Set<java.lang.Integer>
getIntegerSetOrNull(java.lang.String property, com.fasterxml.jackson.databind.JsonNode node)
static java.lang.Integer
getIntOrNull(java.lang.String property, com.fasterxml.jackson.databind.JsonNode node)
static long
getLong(java.lang.String property, com.fasterxml.jackson.databind.JsonNode node)
static java.lang.String
getString(java.lang.String property, com.fasterxml.jackson.databind.JsonNode node)
static java.util.List<java.lang.String>
getStringList(java.lang.String property, com.fasterxml.jackson.databind.JsonNode node)
static java.util.Map<java.lang.String,java.lang.String>
getStringMap(java.lang.String property, com.fasterxml.jackson.databind.JsonNode node)
static java.lang.String
getStringOrNull(java.lang.String property, com.fasterxml.jackson.databind.JsonNode node)
static com.fasterxml.jackson.databind.ObjectMapper
mapper()
-
-
-
Method Detail
-
factory
public static com.fasterxml.jackson.core.JsonFactory factory()
-
mapper
public static com.fasterxml.jackson.databind.ObjectMapper mapper()
-
getInt
public static int getInt(java.lang.String property, com.fasterxml.jackson.databind.JsonNode node)
-
getIntOrNull
public static java.lang.Integer getIntOrNull(java.lang.String property, com.fasterxml.jackson.databind.JsonNode node)
-
getLong
public static long getLong(java.lang.String property, com.fasterxml.jackson.databind.JsonNode node)
-
getBool
public static boolean getBool(java.lang.String property, com.fasterxml.jackson.databind.JsonNode node)
-
getString
public static java.lang.String getString(java.lang.String property, com.fasterxml.jackson.databind.JsonNode node)
-
getStringOrNull
public static java.lang.String getStringOrNull(java.lang.String property, com.fasterxml.jackson.databind.JsonNode node)
-
getStringMap
public static java.util.Map<java.lang.String,java.lang.String> getStringMap(java.lang.String property, com.fasterxml.jackson.databind.JsonNode node)
-
getStringList
public static java.util.List<java.lang.String> getStringList(java.lang.String property, com.fasterxml.jackson.databind.JsonNode node)
-
getIntegerSetOrNull
public static java.util.Set<java.lang.Integer> getIntegerSetOrNull(java.lang.String property, com.fasterxml.jackson.databind.JsonNode node)
-
-