Class JsonPathAddEvaluator
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.JsonPathAddEvaluator
JsonPathAddEvaluator allows adding a value to an array at the specified existing path
-
Field Summary
Fields inherited from class org.apache.nifi.attribute.expression.language.evaluation.functions.JsonPathUpdateEvaluator
valueEvaluatorFields inherited from class org.apache.nifi.attribute.expression.language.evaluation.functions.JsonPathBaseEvaluator
EMPTY_RESULT, JSON_PROVIDER, jsonPathExp, precompiledJsonPathExp, STRICT_PROVIDER_CONFIGURATION, subject -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.jayway.jsonpath.DocumentContextupdateAttribute(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
evaluateMethods inherited from class org.apache.nifi.attribute.expression.language.evaluation.functions.JsonPathBaseEvaluator
compileJsonPathExpression, getDocumentContext, getJsonPath, getResultRepresentation, getSubjectEvaluator, isJsonScalar, validateAndEstablishJsonContextMethods inherited from class org.apache.nifi.attribute.expression.language.evaluation.StringEvaluator
getEvaluationsRemaining, getResultType, getToken, setToken
-
Constructor Details
-
JsonPathAddEvaluator
-
-
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:JsonPathUpdateEvaluatorUpdate the attribute at the specified path. The subclasses will need to implement this method.- Overrides:
updateAttributein 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
-