Class SidhantAggarwalBooleanQueryParser

java.lang.Object
dev.getelements.elements.dao.mongo.query.SidhantAggarwalBooleanQueryParser
All Implemented Interfaces:
BooleanQueryParser

public class SidhantAggarwalBooleanQueryParser extends Object implements BooleanQueryParser
A BooleanQueryParser based on Sidhant Aggarwal's boolean query parser. https://github.com/sidhant92/boolparser
  • Constructor Details

    • SidhantAggarwalBooleanQueryParser

      public SidhantAggarwalBooleanQueryParser()
  • Method Details

    • parse

      public <QueryT> Optional<dev.morphia.query.Query<QueryT>> parse(Class<QueryT> cls, String query)
      Description copied from interface: BooleanQueryParser
      Creates a new Query from the type and the query string.
      Specified by:
      parse in interface BooleanQueryParser
      Type Parameters:
      QueryT -
      Parameters:
      cls - the query type
      query - the query
      Returns:
      the Optional<dev.morphia.query.Query> if the query successfully parsed
    • parse

      public <QueryT> Optional<dev.morphia.query.Query<QueryT>> parse(dev.morphia.query.Query<QueryT> base, String query)
      Description copied from interface: BooleanQueryParser
      Parses the supplied query and converts to the supplied Query
      Specified by:
      parse in interface BooleanQueryParser
      Type Parameters:
      QueryT -
      Parameters:
      base - the base query
      query - the query
      Returns:
      the Optional<dev.morphia.query.Query> if the query successfully parsed
    • getDatastore

      public dev.morphia.Datastore getDatastore()
    • setDatastore

      @Inject public void setDatastore(dev.morphia.Datastore datastore)
    • getOperators

      public Set<BooleanQueryOperator> getOperators()
    • setOperators

      @Inject public void setOperators(Set<BooleanQueryOperator> operators)