Interface BooleanQueryParser

All Known Implementing Classes:
SidhantAggarwalBooleanQueryParser

public interface BooleanQueryParser
Translates a free-form query string to a Morphia Query.
  • Method Summary

    Modifier and Type
    Method
    Description
    <QueryT> Optional<dev.morphia.query.Query<QueryT>>
    parse(dev.morphia.query.Query<QueryT> base, String query)
    Parses the supplied query and converts to the supplied Query
    <QueryT> Optional<dev.morphia.query.Query<QueryT>>
    parse(Class<QueryT> cls, String query)
    Creates a new Query from the type and the query string.
  • Method Details

    • parse

      <QueryT> Optional<dev.morphia.query.Query<QueryT>> parse(Class<QueryT> cls, String query)
      Creates a new Query from the type and the query string.
      Type Parameters:
      QueryT -
      Parameters:
      cls - the query type
      query - 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 supplied Query
      Type Parameters:
      QueryT -
      Parameters:
      base - the base query
      query - the query
      Returns:
      the Optional<dev.morphia.query.Query> if the query successfully parsed