public class ArrayMatchExpression extends ArrayComparisonExpression
array_match_expression := {array:, elemMatch: query_expression }
Constructor and Description |
---|
ArrayMatchExpression(Path array,
QueryExpression elemMatch)
Ctor with the given values
|
Modifier and Type | Method and Description |
---|---|
static ArrayMatchExpression |
fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Parses an array match expression from the given json object
|
Path |
getArray()
The array field.
|
QueryExpression |
getElemMatch()
The nested query that will be matched agains array elements
|
com.fasterxml.jackson.databind.JsonNode |
toJson()
Returns JSON representation of this query
|
fromJson
getFactory, getSourceNode, toString
public ArrayMatchExpression(Path array, QueryExpression elemMatch)
public Path getArray()
public QueryExpression getElemMatch()
public com.fasterxml.jackson.databind.JsonNode toJson()
toJson
in class JsonObject
public static ArrayMatchExpression fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Copyright © 2014. All rights reserved.