public class UpdateParserSingle extends RequestParserSingle
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ACTIONS_POS |
FILTER_POS, QUERY_POSadapter, hasFullTextCurrentQuery, hasFullTextQuery, request, rootNode, sourceRequest| Constructor and Description |
|---|
UpdateParserSingle()
Empty constructor
|
UpdateParserSingle(VarNameAdapter adapter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionParse(com.fasterxml.jackson.databind.JsonNode actionNode)
{$"action" : args, ...}
|
protected Action |
analyseOneAction(String refCommand,
com.fasterxml.jackson.databind.JsonNode command) |
protected RequestSingle |
getNewRequest() |
Update |
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, getLastDepth, hintCache, hintNoTimeout, model, parseJson, parseQueryOnly, queryParseanalyzeArrayCommand, analyzeOneCommand, getRequestId, getRootNode, getSource, hasFullTextQuery, isCommandAsFullTextprotected static final int ACTIONS_POS
public UpdateParserSingle()
public UpdateParserSingle(VarNameAdapter adapter)
adapter - VarNameAdapterprotected RequestSingle getNewRequest()
getNewRequest in class AbstractParser<RequestSingle>public void parse(com.fasterxml.jackson.databind.JsonNode request)
throws InvalidParseOperationException
parse in class AbstractParser<RequestSingle>request - containing a parsed JSON as [ {query}, {filter}, {actions} ]
or { $query : query, $filter : filter, $action : action }InvalidParseOperationException - if request could not parse to JSONprotected void actionParse(com.fasterxml.jackson.databind.JsonNode actionNode)
throws InvalidParseOperationException
actionNode - 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
InvalidParseOperationExceptionpublic String toString()
toString in class RequestParserSinglepublic Update getRequest()
getRequest in class AbstractParser<RequestSingle>Copyright © 2018 Vitam. All rights reserved.