public class ArrayAddExpression extends ArrayUpdateExpression
array_update_expression := { $append : { path : rvalue_expression } } | { $append : { path : [ rvalue_expression, ... ] }} | { $insert : { path : rvalue_expression } } | { $insert : { path : [ rvalue_expression,...] }}
Constructor and Description |
---|
ArrayAddExpression(Path field,
UpdateOperator op,
List<RValueExpression> list)
Constructs an array update expression for insert and append operations
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static ArrayAddExpression |
fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Parses an array update expression using the given json object
|
Path |
getField()
The array field to operate on
|
UpdateOperator |
getOp()
The update operator
|
List<RValueExpression> |
getValues()
Values to be inserted or appended
|
int |
hashCode() |
com.fasterxml.jackson.databind.JsonNode |
toJson() |
fromJson
getFactory, getSourceNode, toString
public ArrayAddExpression(Path field, UpdateOperator op, List<RValueExpression> list)
public Path getField()
public List<RValueExpression> getValues()
public UpdateOperator getOp()
public com.fasterxml.jackson.databind.JsonNode toJson()
toJson
in class JsonObject
public static ArrayAddExpression fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Copyright © 2014. All rights reserved.