Class UpdateParserMultiple
java.lang.Object
fr.gouv.vitam.common.database.parser.request.AbstractParser<RequestMultiple>
fr.gouv.vitam.common.database.parser.request.multiple.RequestParserMultiple
fr.gouv.vitam.common.database.parser.request.multiple.UpdateParserMultiple
Update Parser: { $roots: root, $query : query, $filter : filter, $action : action }
-
Field Summary
Fields inherited from class fr.gouv.vitam.common.database.parser.request.multiple.RequestParserMultiple
lastDepth
Fields inherited from class fr.gouv.vitam.common.database.parser.request.AbstractParser
adapter, hasFullTextCurrentQuery, hasFullTextQuery, request, rootNode, sourceRequest
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
actionParse
(com.fasterxml.jackson.databind.JsonNode rootNode) {$"action" : args, ...}protected Action
analyseOneAction
(String refCommand, com.fasterxml.jackson.databind.JsonNode command) protected RequestMultiple
protected static final BuilderToken.UPDATEACTION
getUpdateActionId
(String actionroot) Compute the QUERY from commandvoid
parse
(com.fasterxml.jackson.databind.JsonNode request) protected void
setregexParse
(com.fasterxml.jackson.databind.JsonNode rootNode) protected void
thresholdParse
(com.fasterxml.jackson.databind.JsonNode rootNode) {$"threshold" : arg}toString()
Methods inherited from class fr.gouv.vitam.common.database.parser.request.multiple.RequestParserMultiple
analyzeRootQuery, filterParse, getFinalScrollId, getFinalScrollTimeout, getLastDepth, hintCache, hintNoTimeout, model, parseJson, parseQueryOnly, queryParse, rootParse, trackTotalHits
Methods inherited from class fr.gouv.vitam.common.database.parser.request.AbstractParser
analyzeOneCommand, getAdapter, getRootNode, getSource, hasFullTextQuery, parseOrderByFilter
-
Constructor Details
-
UpdateParserMultiple
public UpdateParserMultiple()Empty constructor -
UpdateParserMultiple
- Parameters:
adapter
- VarNameAdapter
-
-
Method Details
-
getNewRequest
- Specified by:
getNewRequest
in classAbstractParser<RequestMultiple>
- Returns:
- a new Request
-
parse
public void parse(com.fasterxml.jackson.databind.JsonNode request) throws InvalidParseOperationException - Specified by:
parse
in classAbstractParser<RequestMultiple>
- Parameters:
request
- containing a parsed JSON as { $roots: root, $query : query, $filter : filter, $action : action }- Throws:
InvalidParseOperationException
- if request could not parse to JSON
-
actionParse
protected void actionParse(com.fasterxml.jackson.databind.JsonNode rootNode) throws InvalidParseOperationException {$"action" : args, ...}- Parameters:
rootNode
- JsonNode- Throws:
InvalidParseOperationException
- if rootNode could not parse to JSON
-
thresholdParse
protected void thresholdParse(com.fasterxml.jackson.databind.JsonNode rootNode) throws InvalidParseOperationException {$"threshold" : arg}- Parameters:
rootNode
- JsonNode- Throws:
InvalidParseOperationException
- if rootNode could not parse to JSON
-
setregexParse
protected void setregexParse(com.fasterxml.jackson.databind.JsonNode rootNode) throws InvalidParseOperationException - Throws:
InvalidParseOperationException
-
getUpdateActionId
protected static final BuilderToken.UPDATEACTION getUpdateActionId(String actionroot) throws InvalidParseOperationException Compute the QUERY from command- Parameters:
actionroot
- String- Returns:
- the QUERY
- Throws:
InvalidParseOperationException
- if actionroot could not parse to JSON
-
analyseOneAction
protected Action analyseOneAction(String refCommand, com.fasterxml.jackson.databind.JsonNode command) throws InvalidParseOperationException - Throws:
InvalidParseOperationException
-
toString
- Overrides:
toString
in classRequestParserMultiple
-
getRequest
- Overrides:
getRequest
in classRequestParserMultiple
- Returns:
- the Request
-