public abstract class RequestToMongodb extends RequestToAbstract
requestParser
Constructor and Description |
---|
RequestToMongodb(AbstractParser<?> requestParser) |
Modifier and Type | Method and Description |
---|---|
org.bson.conversions.Bson |
getInitialRoots(String field)
Additional filter to first request
|
org.bson.conversions.Bson |
getNthQueries(int nth)
find(query)
|
org.bson.conversions.Bson |
getRequest(org.bson.conversions.Bson roots,
org.bson.conversions.Bson query) |
static RequestToMongodb |
getRequestToMongoDb(AbstractParser<?> requestParser)
Create the RequestToMongoDB adapted to the RequestParser
|
getFinalLimit, getFinalOffset, getHints, getLastDepth, getNbQueries, getNthQuery, getRequest, getRequestParser, getUsage, hasFullTextQuery, hintCache, hintNoTimeout, isMultiple, model
public RequestToMongodb(AbstractParser<?> requestParser)
requestParser
- AbstractParser of unknown typepublic static RequestToMongodb getRequestToMongoDb(AbstractParser<?> requestParser)
requestParser
- AbstractParser of unknown typepublic org.bson.conversions.Bson getInitialRoots(String field) throws InvalidParseOperationException
field
- Field from which the proposed values shall be foundInvalidParseOperationException
- if field could not parse to JSONpublic org.bson.conversions.Bson getRequest(org.bson.conversions.Bson roots, org.bson.conversions.Bson query)
roots
- Bsonquery
- Bsonpublic org.bson.conversions.Bson getNthQueries(int nth) throws IllegalAccessException, IllegalAccessError, InvalidParseOperationException
nth
- intIllegalAccessException
- if nth exceed the size of listIllegalAccessError
- if query is full textInvalidParseOperationException
- if could not get command by queryCopyright © 2018 Vitam. All rights reserved.