Package io.trino.operator.scalar.json
Class JsonValueFunction
java.lang.Object
io.trino.metadata.SqlScalarFunction
io.trino.operator.scalar.json.JsonValueFunction
- All Implemented Interfaces:
SqlFunction
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJsonValueFunction(FunctionManager functionManager, Metadata metadata, TypeManager typeManager) -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectjsonValue(FunctionManager functionManager, Metadata metadata, TypeManager typeManager, Type parametersRowType, Type returnType, JsonPathInvocationContext invocationContext, ConnectorSession session, com.fasterxml.jackson.databind.JsonNode inputExpression, IrJsonPath jsonPath, SqlRow parametersRow, long emptyBehavior, Object emptyDefault, long errorBehavior, Object errorDefault) static BooleanjsonValueBoolean(FunctionManager functionManager, Metadata metadata, TypeManager typeManager, Type parametersRowType, Type returnType, JsonPathInvocationContext invocationContext, ConnectorSession session, com.fasterxml.jackson.databind.JsonNode inputExpression, IrJsonPath jsonPath, SqlRow parametersRow, long emptyBehavior, Boolean emptyDefault, long errorBehavior, Boolean errorDefault) static DoublejsonValueDouble(FunctionManager functionManager, Metadata metadata, TypeManager typeManager, Type parametersRowType, Type returnType, JsonPathInvocationContext invocationContext, ConnectorSession session, com.fasterxml.jackson.databind.JsonNode inputExpression, IrJsonPath jsonPath, SqlRow parametersRow, long emptyBehavior, Double emptyDefault, long errorBehavior, Double errorDefault) static LongjsonValueLong(FunctionManager functionManager, Metadata metadata, TypeManager typeManager, Type parametersRowType, Type returnType, JsonPathInvocationContext invocationContext, ConnectorSession session, com.fasterxml.jackson.databind.JsonNode inputExpression, IrJsonPath jsonPath, SqlRow parametersRow, long emptyBehavior, Long emptyDefault, long errorBehavior, Long errorDefault) static io.airlift.slice.SlicejsonValueSlice(FunctionManager functionManager, Metadata metadata, TypeManager typeManager, Type parametersRowType, Type returnType, JsonPathInvocationContext invocationContext, ConnectorSession session, com.fasterxml.jackson.databind.JsonNode inputExpression, IrJsonPath jsonPath, SqlRow parametersRow, long emptyBehavior, io.airlift.slice.Slice emptyDefault, long errorBehavior, io.airlift.slice.Slice errorDefault) protected SpecializedSqlScalarFunctionspecialize(BoundSignature boundSignature) Methods inherited from class io.trino.metadata.SqlScalarFunction
getFunctionMetadata, specializeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.metadata.SqlFunction
getFunctionDependencies, getFunctionDependencies
-
Field Details
-
JSON_VALUE_FUNCTION_NAME
- See Also:
-
-
Constructor Details
-
JsonValueFunction
public JsonValueFunction(FunctionManager functionManager, Metadata metadata, TypeManager typeManager)
-
-
Method Details
-
specialize
- Overrides:
specializein classSqlScalarFunction
-
jsonValueLong
public static Long jsonValueLong(FunctionManager functionManager, Metadata metadata, TypeManager typeManager, Type parametersRowType, Type returnType, JsonPathInvocationContext invocationContext, ConnectorSession session, com.fasterxml.jackson.databind.JsonNode inputExpression, IrJsonPath jsonPath, SqlRow parametersRow, long emptyBehavior, Long emptyDefault, long errorBehavior, Long errorDefault) -
jsonValueDouble
public static Double jsonValueDouble(FunctionManager functionManager, Metadata metadata, TypeManager typeManager, Type parametersRowType, Type returnType, JsonPathInvocationContext invocationContext, ConnectorSession session, com.fasterxml.jackson.databind.JsonNode inputExpression, IrJsonPath jsonPath, SqlRow parametersRow, long emptyBehavior, Double emptyDefault, long errorBehavior, Double errorDefault) -
jsonValueBoolean
public static Boolean jsonValueBoolean(FunctionManager functionManager, Metadata metadata, TypeManager typeManager, Type parametersRowType, Type returnType, JsonPathInvocationContext invocationContext, ConnectorSession session, com.fasterxml.jackson.databind.JsonNode inputExpression, IrJsonPath jsonPath, SqlRow parametersRow, long emptyBehavior, Boolean emptyDefault, long errorBehavior, Boolean errorDefault) -
jsonValueSlice
public static io.airlift.slice.Slice jsonValueSlice(FunctionManager functionManager, Metadata metadata, TypeManager typeManager, Type parametersRowType, Type returnType, JsonPathInvocationContext invocationContext, ConnectorSession session, com.fasterxml.jackson.databind.JsonNode inputExpression, IrJsonPath jsonPath, SqlRow parametersRow, long emptyBehavior, io.airlift.slice.Slice emptyDefault, long errorBehavior, io.airlift.slice.Slice errorDefault) -
jsonValue
public static Object jsonValue(FunctionManager functionManager, Metadata metadata, TypeManager typeManager, Type parametersRowType, Type returnType, JsonPathInvocationContext invocationContext, ConnectorSession session, com.fasterxml.jackson.databind.JsonNode inputExpression, IrJsonPath jsonPath, SqlRow parametersRow, long emptyBehavior, Object emptyDefault, long errorBehavior, Object errorDefault)
-