Class TopTermsRewrite<Q extends Query>

    • Constructor Summary

      Constructors 
      Constructor Description
      TopTermsRewrite​(int size)
      Create a TopTermsBooleanQueryRewrite for at most size terms.
    • Constructor Detail

      • TopTermsRewrite

        public TopTermsRewrite​(int size)
        Create a TopTermsBooleanQueryRewrite for at most size terms.

        NOTE: if BooleanQuery.getMaxClauseCount() is smaller than size, then it will be used instead.

    • Method Detail

      • getSize

        public int getSize()
        return the maximum priority queue size
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object