Interface BooleanQueryParser
- All Known Implementing Classes:
SidhantAggarwalBooleanQueryParser
public interface BooleanQueryParser
Translates a free-form query string to a Morphia
Query
.-
Method Details
-
parse
Creates a newQuery
from the type and the query string.- Type Parameters:
QueryT
-- Parameters:
cls
- the query typequery
- the query- Returns:
- the
Optional<dev.morphia.query.Query>
if the query successfully parsed
-
parse
<QueryT> Optional<dev.morphia.query.Query<QueryT>> parse(dev.morphia.query.Query<QueryT> base, String query) Parses the supplied query and converts to the suppliedQuery
- Type Parameters:
QueryT
-- Parameters:
base
- the base queryquery
- the query- Returns:
- the
Optional<dev.morphia.query.Query>
if the query successfully parsed
-