Class SelectToMongodb
java.lang.Object
fr.gouv.vitam.common.database.translators.RequestToAbstract
fr.gouv.vitam.common.database.translators.mongodb.RequestToMongodb
fr.gouv.vitam.common.database.translators.mongodb.SelectToMongodb
Select to MongoDb
-
Field Summary
Fields inherited from class fr.gouv.vitam.common.database.translators.RequestToAbstract
requestParser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.bson.conversions.Bson
FindIterable.sort(orderby) for MongoDborg.bson.conversions.Bson
FindIterable.projection(projection)boolean
boolean
Methods inherited from class fr.gouv.vitam.common.database.translators.mongodb.RequestToMongodb
getInitialRoots, getNthQueries, getRequest, getRequestToMongoDb
Methods inherited from class fr.gouv.vitam.common.database.translators.RequestToAbstract
getFinalLimit, getFinalOffset, getHints, getLastDepth, getNbQueries, getNthQuery, getRequest, getRequestParser, getUsage, hasFullTextQuery, hintCache, hintNoTimeout, isMultiple, model
-
Constructor Details
-
SelectToMongodb
- Parameters:
selectParser
- AbstractParser of unknown type
-
-
Method Details
-
getFinalOrderBy
public org.bson.conversions.Bson getFinalOrderBy()FindIterable.sort(orderby) for MongoDb- Returns:
- the orderBy MongoDB command
-
getSingleSelect
- Returns:
- the Select Single
-
idWasInProjection
public boolean idWasInProjection()- Returns:
- True if #id was in the primary projection or empty projection
-
isScoreIncluded
public boolean isScoreIncluded()- Returns:
- True if the score is included, or false if explicitly excluded
-
getFinalProjection
FindIterable.projection(projection)- Returns:
- the projection
- Throws:
InvalidParseOperationException
- when getting invalid projection request
-