Class TopTermsRewrite<B>

    • Field Detail

      • size

        private final int size
    • 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
      • getMaxSize

        protected abstract int getMaxSize()
        return the maximum size of the priority queue (for boolean rewrites this is BooleanQuery#getMaxClauseCount).
      • 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