Class InsertParserMultiple
- 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.InsertParserMultiple
-
public class InsertParserMultiple extends RequestParserMultiple
Insert Parser: { $roots: root, $query : query, $filter : filter, $data : data}
-
-
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
Constructors Constructor Description InsertParserMultiple()
Should be used in Internal APIInsertParserMultiple(VarNameAdapter adapter)
Should be used in Masterdata or Metadata
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
dataParse(com.fasterxml.jackson.databind.JsonNode rootNode)
{$data : { field: value, ...protected RequestMultiple
getNewRequest()
InsertMultiQuery
getRequest()
void
parse(com.fasterxml.jackson.databind.JsonNode request)
java.lang.String
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 Detail
-
InsertParserMultiple
public InsertParserMultiple()
Should be used in Internal API
-
InsertParserMultiple
public InsertParserMultiple(VarNameAdapter adapter)
Should be used in Masterdata or Metadata- Parameters:
adapter
- VarNameAdapter
-
-
Method Detail
-
getNewRequest
protected RequestMultiple 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, $data : data}- Throws:
InvalidParseOperationException
- if request could not parse to JSON
-
dataParse
protected void dataParse(com.fasterxml.jackson.databind.JsonNode rootNode) throws InvalidParseOperationException
{$data : { field: value, ... }- Parameters:
rootNode
- JsonNode- Throws:
InvalidParseOperationException
- if rootNode could not parse to JSON
-
toString
public java.lang.String toString()
- Overrides:
toString
in classRequestParserMultiple
-
getRequest
public InsertMultiQuery getRequest()
- Overrides:
getRequest
in classRequestParserMultiple
- Returns:
- the Request
-
-