public abstract class JsonPathUpdateEvaluator extends JsonPathBaseEvaluator
updateAttribute(com.jayway.jsonpath.DocumentContext, com.jayway.jsonpath.JsonPath, java.lang.Object) method otherwise it throws NotImplementedException| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOGGER |
protected Evaluator<?> |
valueEvaluator |
EMPTY_RESULT, JSON_PROVIDER, jsonPathExp, precompiledJsonPathExp, STRICT_PROVIDER_CONFIGURATION, subject| Constructor and Description |
|---|
JsonPathUpdateEvaluator(Evaluator<String> subject,
Evaluator<String> jsonPathExp,
Evaluator<?> valueEvaluator) |
| Modifier and Type | Method and Description |
|---|---|
QueryResult<String> |
evaluate(EvaluationContext context) |
com.jayway.jsonpath.DocumentContext |
updateAttribute(com.jayway.jsonpath.DocumentContext documentContext,
com.jayway.jsonpath.JsonPath jsonPath,
Object value)
Update the attribute at the specified path.
|
compileJsonPathExpression, getDocumentContext, getJsonPath, getResultRepresentation, getSubjectEvaluator, isJsonScalar, validateAndEstablishJsonContextgetEvaluationsRemaining, getResultType, getToken, setTokenprivate static final org.slf4j.Logger LOGGER
protected Evaluator<?> valueEvaluator
public QueryResult<String> evaluate(EvaluationContext context)
public com.jayway.jsonpath.DocumentContext updateAttribute(com.jayway.jsonpath.DocumentContext documentContext,
com.jayway.jsonpath.JsonPath jsonPath,
Object value)
documentContext - the document to be updatedjsonPath - the path to updatevalue - the value to be applied at the specified pathorg.apache.commons.lang3.NotImplementedException - if operation is not implementedCopyright © 2022 Apache NiFi Project. All rights reserved.