public class SetExpressionEvaluator extends Updater
| Constructor and Description |
|---|
SetExpressionEvaluator(com.fasterxml.jackson.databind.node.JsonNodeFactory factory,
FieldTreeNode context,
SetExpression expr)
Creates a set expression evaluator
|
| Modifier and Type | Method and Description |
|---|---|
void |
getUpdateFields(Set<Path> fields)
Add the fields updated by this updater to the set of fields.
|
boolean |
update(JsonDoc doc,
FieldTreeNode contextMd,
Path contextPath)
The implementation should update the document
|
getInstance, getInstance, getUpdateFieldspublic SetExpressionEvaluator(com.fasterxml.jackson.databind.node.JsonNodeFactory factory,
FieldTreeNode context,
SetExpression expr)
factory - Node factorycontext - The context from which the expression will be evaluatedexpr - The set expression
This ctor resolves the field references in expr and stores them to be
applied later.public void getUpdateFields(Set<Path> fields)
UpdatergetUpdateFields in class Updaterfields - A Set to receive the fields to be updated
The fields list should be added the absolute pathspublic boolean update(JsonDoc doc, FieldTreeNode contextMd, Path contextPath)
UpdaterCopyright © 2016. All rights reserved.