public class SelectParserMultiple extends RequestParserMultiple
lastDepthadapter, hasFullTextCurrentQuery, hasFullTextQuery, request, rootNode, sourceRequest| Constructor and Description |
|---|
SelectParserMultiple()
Empty constructor
|
SelectParserMultiple(VarNameAdapter adapter) |
| Modifier and Type | Method and Description |
|---|---|
protected Facet |
analyzeOneFacet(com.fasterxml.jackson.databind.JsonNode facet,
BuilderToken.FACET facetCommand)
Generate a Facet from a Json + command
|
protected void |
facetsParse(com.fasterxml.jackson.databind.JsonNode rootNode)
Parse facets
|
static BuilderToken.FACET |
getFacetCommand(com.fasterxml.jackson.databind.JsonNode facet)
Get the facet command
|
protected RequestMultiple |
getNewRequest() |
SelectMultiQuery |
getRequest() |
void |
parse(com.fasterxml.jackson.databind.JsonNode request) |
void |
parseQueryOnly(String query) |
protected void |
projectionParse(com.fasterxml.jackson.databind.JsonNode rootNode)
$fields : {name1 : 0/1, name2 : 0/1, ...}, $usage : contractId
|
protected void |
thresholdParse(com.fasterxml.jackson.databind.JsonNode rootNode)
{$"threshold" : arg}
|
addCondition, analyzeRootQuery, filterParse, getFinalScrollId, getFinalScrollTimeout, getLastDepth, hintCache, hintNoTimeout, model, parseJson, queryParse, rootParse, toStringanalyzeOneCommand, getAdapter, getRootNode, getSource, hasFullTextQuery, isCommandAsFullText, parseOrderByFilterpublic SelectParserMultiple()
public SelectParserMultiple(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 { $roots: root, $query : query, $filter : filter, $projection :
projection }InvalidParseOperationException - if request could not parse to JSONpublic void parseQueryOnly(String query) throws InvalidParseOperationException
parseQueryOnly in class RequestParserMultiplequery - containing only the JSON request part (no filter neither projection nor roots)InvalidParseOperationException - if request could not parse to JSONprotected void facetsParse(com.fasterxml.jackson.databind.JsonNode rootNode)
throws InvalidParseOperationException
rootNode - JsonNodeInvalidParseOperationException - if rootNode could not parse to JSONpublic static final BuilderToken.FACET getFacetCommand(com.fasterxml.jackson.databind.JsonNode facet) throws InvalidParseOperationException
facet - facetInvalidParseOperationException - when valid command could not be foundprotected Facet analyzeOneFacet(com.fasterxml.jackson.databind.JsonNode facet, BuilderToken.FACET facetCommand) throws InvalidCreateOperationException, InvalidParseOperationException
facet - facet as jsonfacetCommand - facet commandInvalidCreateOperationException - parsing errorInvalidParseOperationException - invalid command typeprotected void projectionParse(com.fasterxml.jackson.databind.JsonNode rootNode)
throws InvalidParseOperationException
rootNode - JsonNodeInvalidParseOperationException - if rootNode could not parse to JSONprotected void thresholdParse(com.fasterxml.jackson.databind.JsonNode rootNode)
throws InvalidParseOperationException
rootNode - JsonNodeInvalidParseOperationException - if rootNode could not parse to JSONpublic SelectMultiQuery getRequest()
getRequest in class RequestParserMultipleCopyright © 2018 Vitam. All rights reserved.