Class SelectMultiQuery
java.lang.Object
fr.gouv.vitam.common.database.builder.request.AbstractRequest
fr.gouv.vitam.common.database.builder.request.multiple.RequestMultiple
fr.gouv.vitam.common.database.builder.request.multiple.SelectMultiQuery
Select: { $roots: roots, $query : query, $filter : filter, $projection : projection, $facets : facet }
-
Field Summary
Fields inherited from class fr.gouv.vitam.common.database.builder.request.multiple.RequestMultiple
queries, roots
Fields inherited from class fr.gouv.vitam.common.database.builder.request.AbstractRequest
filter, projection
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal SelectMultiQuery
protected void
addFacetsToNode
(com.fasterxml.jackson.databind.node.ObjectNode node) Add facets to given nodefinal SelectMultiQuery
addOrderByAscFilter
(String... variableNames) final SelectMultiQuery
addOrderByDescFilter
(String... variableNames) final SelectMultiQuery
addOrderByFilter
(com.fasterxml.jackson.databind.JsonNode filterContent) final SelectMultiQuery
addProjection
(com.fasterxml.jackson.databind.JsonNode projectionContent) final SelectMultiQuery
addUnusedProjection
(String... variableNames) final SelectMultiQuery
addUsedProjection
(String... variableNames) final boolean
default implements of getAllProjectiongetFacetsfinal com.fasterxml.jackson.databind.node.ObjectNode
final com.fasterxml.jackson.databind.node.ObjectNode
final com.fasterxml.jackson.databind.node.ObjectNode
default implements of getProjectionGetter for thresholdfinal SelectMultiQuery
parseLimitFilter
(String filter) final SelectMultiQuery
parseOrderByFilter
(String filter) final SelectMultiQuery
parseProjection
(String projection) final SelectMultiQuery
reset()
final SelectMultiQuery
final SelectMultiQuery
final SelectMultiQuery
final SelectMultiQuery
final SelectMultiQuery
protected final SelectMultiQuery
selectSetProjection
(com.fasterxml.jackson.databind.JsonNode projectionContent) final SelectMultiQuery
setFilter
(com.fasterxml.jackson.databind.JsonNode filterContent) final SelectMultiQuery
setLimitFilter
(long offset, long limit) final SelectMultiQuery
setLimitFilter
(com.fasterxml.jackson.databind.JsonNode filterContent) final SelectMultiQuery
setProjection
(com.fasterxml.jackson.databind.JsonNode projectionContent) final SelectMultiQuery
setScrollFilter
(String scrollId, int scrollTimeout, int limit) void
setThreshold
(Long threshold) Setter for thresholdfinal SelectMultiQuery
setUsageProjection
(com.fasterxml.jackson.databind.JsonNode projectionContent) final SelectMultiQuery
setUsageProjection
(String usage) toString()
final SelectMultiQuery
trackTotalHits
(boolean trackTotalHits) Methods inherited from class fr.gouv.vitam.common.database.builder.request.multiple.RequestMultiple
addQueries, addRoots, addRoots, getActions, getData, getFinal, getNbQueries, getNthQuery, getQueries, getRoots, parseRoots, resetQueries, resetRoots, setFacets, setQuery
Methods inherited from class fr.gouv.vitam.common.database.builder.request.AbstractRequest
addHintFilter, addHintFilter, getFilter, parseFilter, resetFilter, resetHintFilter, selectAddOrderByAscFilter, selectAddOrderByDescFilter, selectAddOrderByFilter, selectAddProjection, selectAddUnusedProjection, selectAddUsedProjection, selectGetAllProjection, selectGetFinalSelect, selectGetProjection, selectParseLimitFilter, selectParseOrderByFilter, selectParseProjection, selectReset, selectResetLimitFilter, selectResetOrderByFilter, selectResetUsedProjection, selectSetFilter, selectSetLimitFilter, selectSetLimitFilter, selectSetScrollFilter
-
Field Details
-
facets
Facets -
threshold
-
-
Constructor Details
-
SelectMultiQuery
public SelectMultiQuery()
-
-
Method Details
-
resetFacets
- Returns:
- this Request
-
resetLimitFilter
- Returns:
- this Query
-
resetOrderByFilter
- Returns:
- this Query
-
resetUsedProjection
- Returns:
- this Query
-
resetUsageProjection
- Returns:
- this Query
-
reset
- Overrides:
reset
in classRequestMultiple
- Returns:
- this Query
-
setLimitFilter
- Parameters:
offset
- ignored if 0limit
- ignored if 0- Returns:
- this Query
-
setLimitFilter
- Parameters:
filterContent
- content json- Returns:
- this Query
-
trackTotalHits
- Parameters:
trackTotalHits
- to set. false (default) to return approximative total hits, true to return exact total hits- Returns:
- this Query
-
parseLimitFilter
- Parameters:
filter
- string filter- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
addOrderByAscFilter
public final SelectMultiQuery addOrderByAscFilter(String... variableNames) throws InvalidParseOperationException - Parameters:
variableNames
- list of key name- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
addOrderByDescFilter
public final SelectMultiQuery addOrderByDescFilter(String... variableNames) throws InvalidParseOperationException - Parameters:
variableNames
- list of key name- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
addOrderByFilter
public final SelectMultiQuery addOrderByFilter(com.fasterxml.jackson.databind.JsonNode filterContent) throws InvalidParseOperationException - Parameters:
filterContent
- json filter- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
parseOrderByFilter
public final SelectMultiQuery parseOrderByFilter(String filter) throws InvalidParseOperationException - Parameters:
filter
- string filter- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
setFilter
public final SelectMultiQuery setFilter(com.fasterxml.jackson.databind.JsonNode filterContent) throws InvalidParseOperationException - Overrides:
setFilter
in classAbstractRequest
- Parameters:
filterContent
- json filter- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
addUsedProjection
public final SelectMultiQuery addUsedProjection(String... variableNames) throws InvalidParseOperationException - Parameters:
variableNames
- list of key name- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
addUnusedProjection
public final SelectMultiQuery addUnusedProjection(String... variableNames) throws InvalidParseOperationException - Parameters:
variableNames
- list of key name- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
addProjection
public final SelectMultiQuery addProjection(com.fasterxml.jackson.databind.JsonNode projectionContent) - Parameters:
projectionContent
- json projection- Returns:
- this Query
-
parseProjection
public final SelectMultiQuery parseProjection(String projection) throws InvalidParseOperationException - Parameters:
projection
- string projection- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
setUsageProjection
public final SelectMultiQuery setUsageProjection(String usage) throws InvalidParseOperationException - Parameters:
usage
- string- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
setUsageProjection
public final SelectMultiQuery setUsageProjection(com.fasterxml.jackson.databind.JsonNode projectionContent) throws InvalidParseOperationException - Parameters:
projectionContent
- json projection- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
selectSetProjection
protected final SelectMultiQuery selectSetProjection(com.fasterxml.jackson.databind.JsonNode projectionContent) throws InvalidParseOperationException - Overrides:
selectSetProjection
in classAbstractRequest
- Parameters:
projectionContent
- json projection- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
setProjection
public final SelectMultiQuery setProjection(com.fasterxml.jackson.databind.JsonNode projectionContent) throws InvalidParseOperationException - Parameters:
projectionContent
- json projection- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
getFinalSelect
public final com.fasterxml.jackson.databind.node.ObjectNode getFinalSelect()- Returns:
- the Final Select containing all 5 parts: roots array, queries array, facets array, filter and projection
-
getFinalSelectById
public final com.fasterxml.jackson.databind.node.ObjectNode getFinalSelectById()- Returns:
- the Final Select By Id containing only one part: projection
-
addFacetsToNode
protected void addFacetsToNode(com.fasterxml.jackson.databind.node.ObjectNode node) Add facets to given node- Parameters:
node
- with facets
-
getAllProjection
public final boolean getAllProjection()Description copied from class:RequestMultiple
default implements of getAllProjection- Overrides:
getAllProjection
in classRequestMultiple
- Returns:
- True if the projection is not restricted
-
getProjection
public final com.fasterxml.jackson.databind.node.ObjectNode getProjection()Description copied from class:RequestMultiple
default implements of getProjection- Overrides:
getProjection
in classRequestMultiple
- Returns:
- the projection
-
getFacets
Description copied from class:RequestMultiple
getFacets- Overrides:
getFacets
in classRequestMultiple
- Returns:
- the facets
-
addFacets
- Parameters:
facets
- list of facet- Returns:
- this Request
- Throws:
IllegalArgumentException
- when facet is invalid
-
setFacet
- Parameters:
facet
- facet- Returns:
- this Request
- Throws:
IllegalArgumentException
- when facet is invalid
-
setScrollFilter
- Parameters:
scrollId
- ignored if empty or nullscrollTimeout
- ignored if 0limit
- ignored if 0- Returns:
- this Query
-
getThreshold
Getter for threshold- Overrides:
getThreshold
in classRequestMultiple
- Returns:
- the threshold
-
setThreshold
Setter for threshold- Overrides:
setThreshold
in classRequestMultiple
- Parameters:
threshold
- the value to set for the threshold
-
toString
- Overrides:
toString
in classRequestMultiple
-