Class Query
java.lang.Object
fr.gouv.vitam.common.database.builder.query.Query
- Direct Known Subclasses:
BooleanQuery,CompareQuery,ExistsQuery,InQuery,MatchQuery,MltQuery,NestedQuery,NopQuery,PathQuery,QueryDepthHelper,RangeQuery,SearchQuery,TermQuery,WildcardQuery
Query component
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.fasterxml.jackson.databind.JsonNodeprotected com.fasterxml.jackson.databind.node.ObjectNodeprotected BuilderToken.QUERYstatic final StringDATE itemprotected intprotected intprotected booleanprotected booleanprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclean()Clean the objectprotected voidRemoving exact depth and depthprotected final voidprotected final voidcreateQueryVariable(BuilderToken.QUERY query, String variableName) protected final voidcreateQueryVariableValue(BuilderToken.QUERY query, String variableName, boolean value) protected final voidcreateQueryVariableValue(BuilderToken.QUERY query, String variableName, double value) protected final voidcreateQueryVariableValue(BuilderToken.QUERY query, String variableName, long value) protected final voidcreateQueryVariableValue(BuilderToken.QUERY query, String variableName, com.fasterxml.jackson.databind.JsonNode value) protected final voidcreateQueryVariableValue(BuilderToken.QUERY query, String variableName, String value) protected final voidcreateQueryVariableValue(BuilderToken.QUERY query, String variableName, Date value) com.fasterxml.jackson.databind.JsonNodecom.fasterxml.jackson.databind.node.ObjectNodeintcom.fasterxml.jackson.databind.JsonNodefinal intfinal intgetQUERY()final booleanbooleanisReady()final QuerysetDepthLimit(int relativedepth) Relative Depth, similar tosetRelativeDepthLimit(int)final QuerysetExactDepthLimit(int exactdepth) setExtraInfo(int val) final QuerysetFullText(boolean isFullText) final QuerysetParserExactdepth(int exactdepth) final QuerysetParserRelativeDepth(int relativedepth) protected QuerysetReady(boolean ready) final QuerysetRelativeDepthLimit(int relativedepth) toString()
-
Field Details
-
DATE
DATE item- See Also:
-
currentQuery
protected com.fasterxml.jackson.databind.node.ObjectNode currentQuery -
currentObject
protected com.fasterxml.jackson.databind.JsonNode currentObject -
currentTokenQUERY
-
isFullText
protected boolean isFullText -
ready
protected boolean ready -
relativedepth
protected int relativedepth -
exactdepth
protected int exactdepth -
extraInfo
protected int extraInfo
-
-
Constructor Details
-
Query
protected Query()Empty constructor
-
-
Method Details
-
createQueryArray
-
createQueryVariable
protected final void createQueryVariable(BuilderToken.QUERY query, String variableName) throws InvalidCreateOperationException - Throws:
InvalidCreateOperationException
-
createQueryVariableValue
protected final void createQueryVariableValue(BuilderToken.QUERY query, String variableName, long value) throws InvalidCreateOperationException - Throws:
InvalidCreateOperationException
-
createQueryVariableValue
protected final void createQueryVariableValue(BuilderToken.QUERY query, String variableName, double value) throws InvalidCreateOperationException - Throws:
InvalidCreateOperationException
-
createQueryVariableValue
protected final void createQueryVariableValue(BuilderToken.QUERY query, String variableName, String value) throws InvalidCreateOperationException - Throws:
InvalidCreateOperationException
-
createQueryVariableValue
protected final void createQueryVariableValue(BuilderToken.QUERY query, String variableName, Date value) throws InvalidCreateOperationException - Throws:
InvalidCreateOperationException
-
createQueryVariableValue
protected final void createQueryVariableValue(BuilderToken.QUERY query, String variableName, boolean value) throws InvalidCreateOperationException - Throws:
InvalidCreateOperationException
-
createQueryVariableValue
protected final void createQueryVariableValue(BuilderToken.QUERY query, String variableName, com.fasterxml.jackson.databind.JsonNode value) throws InvalidCreateOperationException - Throws:
InvalidCreateOperationException
-
clean
public void clean()Clean the object -
cleanDepth
protected void cleanDepth()Removing exact depth and depth -
setExactDepthLimit
- Parameters:
exactdepth- 0 to ignore- Returns:
- the single request ready to be added to global Query (remove previous exact depth and depth if any)
-
setRelativeDepthLimit
- Parameters:
relativedepth- query's depth- Returns:
- the single request ready to be added to global Query (remove previous exact depth and depth if any)
-
setDepthLimit
Relative Depth, similar tosetRelativeDepthLimit(int)- Parameters:
relativedepth- query's depth- Returns:
- the single request ready to be added to global Query (remove previous exact depth and depth if any)
-
getCurrentQuery
public com.fasterxml.jackson.databind.node.ObjectNode getCurrentQuery()- Returns:
- the currentQuery
-
getNode
- Parameters:
key- of node- Returns:
- the root node named key
-
getCurrentObject
public com.fasterxml.jackson.databind.JsonNode getCurrentObject()- Returns:
- the currentObject (internal use only during parse)
-
getQUERY
- Returns:
- the current QUERY
-
isReady
public boolean isReady()- Returns:
- the ready
-
setReady
- Parameters:
ready- the ready to set- Returns:
- this QUERY
-
setExtraInfo
- Parameters:
val- extra value- Returns:
- this Query
-
getExtraInfo
public int getExtraInfo()- Returns:
- the extra info
-
isFullText
public final boolean isFullText()- Returns:
- the isFullText
-
setFullText
- Parameters:
isFullText- the isFullText to set- Returns:
- this
-
getParserExactdepth
public final int getParserExactdepth()- Returns:
- the exact depth
-
setParserExactdepth
- Parameters:
exactdepth- the exact depth to set- Returns:
- this
-
getParserRelativeDepth
public final int getParserRelativeDepth()- Returns:
- the relative depth
-
setParserRelativeDepth
- Parameters:
relativedepth- the relative depth to set- Returns:
- this
-
toString
-