Package io.trino.json
Class JsonPathEvaluator
java.lang.Object
io.trino.json.JsonPathEvaluator
Evaluates the JSON path expression using given JSON input and parameters,
respecting the path mode `strict` or `lax`.
Successful evaluation results in a sequence of objects.
Each object in the sequence is either a `JsonNode` or a `TypedValue`
Certain error conditions might be suppressed in `lax` mode.
Any unsuppressed error condition causes evaluation failure.
In such case, `PathEvaluationError` is thrown.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionJsonPathEvaluator(IrJsonPath path, ConnectorSession session, Metadata metadata, TypeManager typeManager, FunctionManager functionManager) -
Method Summary
-
Constructor Details
-
JsonPathEvaluator
public JsonPathEvaluator(IrJsonPath path, ConnectorSession session, Metadata metadata, TypeManager typeManager, FunctionManager functionManager)
-
-
Method Details
-
evaluate
-