public class UpdateParserMultiple extends RequestParserMultiple
Modifier and Type | Field and Description |
---|---|
protected static int |
ACTIONS_POS |
FILTER_POS, lastDepth, QUERY_POS, ROOT_POS
adapter, hasFullTextCurrentQuery, hasFullTextQuery, request, rootNode, sourceRequest
Constructor and Description |
---|
UpdateParserMultiple()
Empty constructor
|
UpdateParserMultiple(VarNameAdapter adapter) |
Modifier and Type | Method and Description |
---|---|
protected void |
actionParse(com.fasterxml.jackson.databind.JsonNode rootNode)
{$"action" : args, ...}
|
protected Action |
analyseOneAction(String refCommand,
com.fasterxml.jackson.databind.JsonNode command) |
protected RequestMultiple |
getNewRequest() |
UpdateMultiQuery |
getRequest() |
protected static BuilderToken.UPDATEACTION |
getUpdateActionId(String actionroot)
Compute the QUERY from command
|
void |
parse(com.fasterxml.jackson.databind.JsonNode request) |
String |
toString() |
addCondition, analyzeRootQuery, filterParse, getFinalScrollId, getFinalScrollTimeout, getLastDepth, hintCache, hintNoTimeout, model, parseJson, parseQueryOnly, queryParse, rootParse
analyzeArrayCommand, analyzeOneCommand, getRequestId, getRootNode, getSource, hasFullTextQuery, isCommandAsFullText
protected static final int ACTIONS_POS
public UpdateParserMultiple()
public UpdateParserMultiple(VarNameAdapter adapter)
adapter
- VarNameAdapterprotected RequestMultiple getNewRequest()
getNewRequest
in class AbstractParser<RequestMultiple>
public void parse(com.fasterxml.jackson.databind.JsonNode request) throws InvalidParseOperationException
parse
in class AbstractParser<RequestMultiple>
request
- containing a parsed JSON as [ {root}, {query}, {filter}, {actions} ] or { $roots: root, $query :
query, $filter : filter, $action : action }InvalidParseOperationException
- if request could not parse to JSONprotected void actionParse(com.fasterxml.jackson.databind.JsonNode rootNode) throws InvalidParseOperationException
rootNode
- JsonNodeInvalidParseOperationException
- if rootNode could not parse to JSONprotected static final BuilderToken.UPDATEACTION getUpdateActionId(String actionroot) throws InvalidParseOperationException
actionroot
- StringInvalidParseOperationException
- if actionroot could not parse to JSONprotected Action analyseOneAction(String refCommand, com.fasterxml.jackson.databind.JsonNode command) throws InvalidParseOperationException
InvalidParseOperationException
public String toString()
toString
in class RequestParserMultiple
public UpdateMultiQuery getRequest()
getRequest
in class RequestParserMultiple
Copyright © 2018 Vitam. All rights reserved.