public class JsonFunctions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonFunctions.JsonPathContext
Returned path context of JsonApiCommonSyntax, public for testing.
|
static class |
JsonFunctions.JsonValueContext
The Java output of
SqlJsonValueExpressionOperator. |
static class |
JsonFunctions.PathMode
Path spec has two different modes: lax mode and strict mode.
|
public static JsonFunctions.JsonValueContext jsonValueExpression(String input)
public static JsonFunctions.JsonPathContext jsonApiCommonSyntax(String input)
public static JsonFunctions.JsonPathContext jsonApiCommonSyntax(JsonFunctions.JsonValueContext input)
public static JsonFunctions.JsonPathContext jsonApiCommonSyntax(String input, String pathSpec)
public static JsonFunctions.JsonPathContext jsonApiCommonSyntax(JsonFunctions.JsonValueContext input, String pathSpec)
public static @Nullable Boolean jsonExists(String input, String pathSpec, SqlJsonExistsErrorBehavior errorBehavior)
public static @Nullable Boolean jsonExists(JsonFunctions.JsonValueContext input, String pathSpec)
public static @Nullable Boolean jsonExists(JsonFunctions.JsonValueContext input, String pathSpec, SqlJsonExistsErrorBehavior errorBehavior)
public static @Nullable Boolean jsonExists(JsonFunctions.JsonPathContext context)
public static @Nullable Boolean jsonExists(JsonFunctions.JsonPathContext context, SqlJsonExistsErrorBehavior errorBehavior)
public static @Nullable Object jsonValue(String input, String pathSpec, SqlJsonValueEmptyOrErrorBehavior emptyBehavior, Object defaultValueOnEmpty, SqlJsonValueEmptyOrErrorBehavior errorBehavior, Object defaultValueOnError)
public static @Nullable Object jsonValue(JsonFunctions.JsonValueContext input, String pathSpec, SqlJsonValueEmptyOrErrorBehavior emptyBehavior, Object defaultValueOnEmpty, SqlJsonValueEmptyOrErrorBehavior errorBehavior, Object defaultValueOnError)
public static @Nullable Object jsonValue(JsonFunctions.JsonPathContext context, SqlJsonValueEmptyOrErrorBehavior emptyBehavior, Object defaultValueOnEmpty, SqlJsonValueEmptyOrErrorBehavior errorBehavior, Object defaultValueOnError)
public static @Nullable String jsonQuery(String input, String pathSpec, SqlJsonQueryWrapperBehavior wrapperBehavior, SqlJsonQueryEmptyOrErrorBehavior emptyBehavior, SqlJsonQueryEmptyOrErrorBehavior errorBehavior)
public static @Nullable String jsonQuery(JsonFunctions.JsonValueContext input, String pathSpec, SqlJsonQueryWrapperBehavior wrapperBehavior, SqlJsonQueryEmptyOrErrorBehavior emptyBehavior, SqlJsonQueryEmptyOrErrorBehavior errorBehavior)
public static @Nullable String jsonQuery(JsonFunctions.JsonPathContext context, SqlJsonQueryWrapperBehavior wrapperBehavior, SqlJsonQueryEmptyOrErrorBehavior emptyBehavior, SqlJsonQueryEmptyOrErrorBehavior errorBehavior)
public static String jsonObject(SqlJsonConstructorNullClause nullClause, Object... kvs)
public static void jsonObjectAggAdd(Map map, String k, @Nullable Object v, SqlJsonConstructorNullClause nullClause)
public static String jsonArray(SqlJsonConstructorNullClause nullClause, Object... elements)
public static void jsonArrayAggAdd(List list, @Nullable Object element, SqlJsonConstructorNullClause nullClause)
public static String jsonPretty(JsonFunctions.JsonValueContext input)
public static String jsonType(JsonFunctions.JsonValueContext input)
public static @Nullable Integer jsonDepth(JsonFunctions.JsonValueContext input)
public static @Nullable Integer jsonLength(JsonFunctions.JsonValueContext input)
public static @Nullable Integer jsonLength(JsonFunctions.JsonValueContext input, String pathSpec)
public static @Nullable Integer jsonLength(JsonFunctions.JsonPathContext context)
public static String jsonKeys(JsonFunctions.JsonValueContext input)
public static String jsonKeys(JsonFunctions.JsonValueContext input, String pathSpec)
public static String jsonKeys(JsonFunctions.JsonPathContext context)
public static String jsonRemove(JsonFunctions.JsonValueContext input, String... pathSpecs)
public static Integer jsonStorageSize(JsonFunctions.JsonValueContext input)
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 © 2012-2022 Apache Software Foundation. All Rights Reserved.