Class TermsConsumer

    • Constructor Detail

      • TermsConsumer

        protected TermsConsumer()
        Sole constructor. (For invocation by subclass constructors, typically implicit.)
    • Method Detail

      • finishTerm

        public abstract void finishTerm​(BytesRef text,
                                        TermStats stats)
                                 throws IOException
        Finishes the current term; numDocs must be > 0. stats.totalTermFreq will be -1 when term frequencies are omitted for the field.
        Throws:
        IOException
      • finish

        public abstract void finish​(long sumTotalTermFreq,
                                    long sumDocFreq,
                                    int docCount)
                             throws IOException
        Called when we are done adding terms to this field. sumTotalTermFreq will be -1 when term frequencies are omitted for the field.
        Throws:
        IOException