Class JsonPathSetEvaluator
java.lang.Object
org.apache.nifi.attribute.expression.language.evaluation.StringEvaluator
org.apache.nifi.attribute.expression.language.evaluation.functions.JsonPathBaseEvaluator
org.apache.nifi.attribute.expression.language.evaluation.functions.JsonPathUpdateEvaluator
org.apache.nifi.attribute.expression.language.evaluation.functions.JsonPathSetEvaluator
JsonPathSetEvaluator allows setting values at the specified existing path
-
Field Summary
Fields inherited from class org.apache.nifi.attribute.expression.language.evaluation.functions.JsonPathUpdateEvaluator
valueEvaluator
Fields inherited from class org.apache.nifi.attribute.expression.language.evaluation.functions.JsonPathBaseEvaluator
EMPTY_RESULT, JSON_PROVIDER, jsonPathExp, precompiledJsonPathExp, STRICT_PROVIDER_CONFIGURATION, subject
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.jayway.jsonpath.DocumentContext
updateAttribute
(com.jayway.jsonpath.DocumentContext documentContext, com.jayway.jsonpath.JsonPath jsonPath, Object value) Update the attribute at the specified path.Methods inherited from class org.apache.nifi.attribute.expression.language.evaluation.functions.JsonPathUpdateEvaluator
evaluate
Methods inherited from class org.apache.nifi.attribute.expression.language.evaluation.functions.JsonPathBaseEvaluator
compileJsonPathExpression, getDocumentContext, getJsonPath, getResultRepresentation, getSubjectEvaluator, isJsonScalar, validateAndEstablishJsonContext
Methods inherited from class org.apache.nifi.attribute.expression.language.evaluation.StringEvaluator
getEvaluationsRemaining, getResultType, getToken, setToken
-
Constructor Details
-
JsonPathSetEvaluator
-
-
Method Details
-
updateAttribute
public com.jayway.jsonpath.DocumentContext updateAttribute(com.jayway.jsonpath.DocumentContext documentContext, com.jayway.jsonpath.JsonPath jsonPath, Object value) Description copied from class:JsonPathUpdateEvaluator
Update the attribute at the specified path. The subclasses will need to implement this method.- Overrides:
updateAttribute
in classJsonPathUpdateEvaluator
- Parameters:
documentContext
- the document to be updatedjsonPath
- the path to updatevalue
- the value to be applied at the specified path- Returns:
- the updated DocumentContext
-