Modifier and Type | Class and Description |
---|---|
static class |
SqlJsonUtils.JsonQueryReturnType |
static class |
SqlJsonUtils.PathMode
Path spec has two different modes: lax mode and strict mode.
|
Modifier and Type | Method and Description |
---|---|
static org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.node.ArrayNode |
createArrayNode()
Returns a new
ArrayNode . |
static org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.node.ObjectNode |
createObjectNode()
Returns a new
ObjectNode . |
static org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.node.JsonNodeFactory |
getNodeFactory()
Returns the
JsonNodeFactory for creating nodes. |
static boolean |
isJsonArray(String input) |
static boolean |
isJsonObject(String input) |
static boolean |
isJsonScalar(String input) |
static boolean |
isJsonValue(String input) |
static Boolean |
jsonExists(String input,
String pathSpec) |
static Boolean |
jsonExists(String input,
String pathSpec,
JsonExistsOnError errorBehavior) |
static Object |
jsonQuery(String input,
String pathSpec,
SqlJsonUtils.JsonQueryReturnType returnType,
JsonQueryWrapper wrapperBehavior,
JsonQueryOnEmptyOrError emptyBehavior,
JsonQueryOnEmptyOrError errorBehavior) |
static Object |
jsonValue(String input,
String pathSpec,
JsonValueOnEmptyOrError emptyBehavior,
Object defaultValueOnEmpty,
JsonValueOnEmptyOrError errorBehavior,
Object defaultValueOnError) |
static String |
serializeJson(org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.JsonNode node)
Serializes the given
JsonNode to a JSON string. |
public static org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.node.JsonNodeFactory getNodeFactory()
JsonNodeFactory
for creating nodes.public static org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.node.ObjectNode createObjectNode()
ObjectNode
.public static org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.node.ArrayNode createArrayNode()
ArrayNode
.public static String serializeJson(org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.JsonNode node)
JsonNode
to a JSON string.public static Boolean jsonExists(String input, String pathSpec, JsonExistsOnError errorBehavior)
public static Object jsonValue(String input, String pathSpec, JsonValueOnEmptyOrError emptyBehavior, Object defaultValueOnEmpty, JsonValueOnEmptyOrError errorBehavior, Object defaultValueOnError)
public static Object jsonQuery(String input, String pathSpec, SqlJsonUtils.JsonQueryReturnType returnType, JsonQueryWrapper wrapperBehavior, JsonQueryOnEmptyOrError emptyBehavior, JsonQueryOnEmptyOrError errorBehavior)
public static boolean isJsonValue(String input)
public static boolean isJsonObject(String input)
public static boolean isJsonArray(String input)
public static boolean isJsonScalar(String input)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.