Class DisjunctiveQuery

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class DisjunctiveQuery
    extends MultiTermQuery
    Models a disjunctive choice in single term queries in a query.
    Author:
    Craig Macdonald
    See Also:
    Serialized Form
    • Constructor Detail

      • DisjunctiveQuery

        public DisjunctiveQuery​(java.lang.String[] alternatives)
        Constructor
        Parameters:
        alternatives -
      • DisjunctiveQuery

        public DisjunctiveQuery()
        default constructor
    • Method Detail

      • setWeight

        public void setWeight​(double w)
        Sets the weight of the disjunctive "term".
        Overrides:
        setWeight in class MultiTermQuery
        Parameters:
        w - double the weight of the disjunctive "term".
      • getWeight

        public double getWeight()
        Returns the weight of the disjunctive "term".
        Returns:
        double the weight of the disjunctive "term".
      • resetActive

        public void resetActive()
        reset active index
      • setActive

        public void setActive​(int _activeIndex)
        set active index
        Parameters:
        _activeIndex -
      • obtainAllOf

        public void obtainAllOf​(java.lang.Class<? extends Query> c,
                                java.util.List<Query> a)
        Description copied from class: Query
        Returns all the queries of the specified class
        Overrides:
        obtainAllOf in class MultiTermQuery
      • toString

        public java.lang.String toString()
        Description copied from class: MultiTermQuery
        Returns a string representation of the query.
        Overrides:
        toString in class MultiTermQuery
        Returns:
        String the string of this query.