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 Boolean jsonExists(String input, String pathSpec, SqlJsonExistsErrorBehavior errorBehavior)
public static Boolean jsonExists(JsonFunctions.JsonValueContext input, String pathSpec)
public static Boolean jsonExists(JsonFunctions.JsonValueContext input, String pathSpec, SqlJsonExistsErrorBehavior errorBehavior)
public static Boolean jsonExists(JsonFunctions.JsonPathContext context)
public static Boolean jsonExists(JsonFunctions.JsonPathContext context, SqlJsonExistsErrorBehavior errorBehavior)
public static Object jsonValue(String input, String pathSpec, SqlJsonValueEmptyOrErrorBehavior emptyBehavior, Object defaultValueOnEmpty, SqlJsonValueEmptyOrErrorBehavior errorBehavior, Object defaultValueOnError)
public static Object jsonValue(JsonFunctions.JsonValueContext input, String pathSpec, SqlJsonValueEmptyOrErrorBehavior emptyBehavior, Object defaultValueOnEmpty, SqlJsonValueEmptyOrErrorBehavior errorBehavior, Object defaultValueOnError)
public static Object jsonValue(JsonFunctions.JsonPathContext context, SqlJsonValueEmptyOrErrorBehavior emptyBehavior, Object defaultValueOnEmpty, SqlJsonValueEmptyOrErrorBehavior errorBehavior, Object defaultValueOnError)
public static String jsonQuery(String input, String pathSpec, SqlJsonQueryWrapperBehavior wrapperBehavior, SqlJsonQueryEmptyOrErrorBehavior emptyBehavior, SqlJsonQueryEmptyOrErrorBehavior errorBehavior)
public static String jsonQuery(JsonFunctions.JsonValueContext input, String pathSpec, SqlJsonQueryWrapperBehavior wrapperBehavior, SqlJsonQueryEmptyOrErrorBehavior emptyBehavior, SqlJsonQueryEmptyOrErrorBehavior errorBehavior)
public static 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, Object v, SqlJsonConstructorNullClause nullClause)
public static String jsonArray(SqlJsonConstructorNullClause nullClause, Object... elements)
public static void jsonArrayAggAdd(List list, Object element, SqlJsonConstructorNullClause nullClause)
public static String jsonPretty(JsonFunctions.JsonValueContext input)
public static String jsonType(JsonFunctions.JsonValueContext input)
public static Integer jsonDepth(JsonFunctions.JsonValueContext input)
public static Integer jsonLength(JsonFunctions.JsonValueContext input)
public static Integer jsonLength(JsonFunctions.JsonValueContext input, String pathSpec)
public static 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-2020 Apache Software Foundation. All Rights Reserved.