Class CompletionFieldsConsumer.CompletionTermWriter

  • Enclosing class:
    CompletionFieldsConsumer

    private static class CompletionFieldsConsumer.CompletionTermWriter
    extends java.lang.Object
    • Field Detail

      • docCount

        private int docCount
      • maxWeight

        private long maxWeight
      • minWeight

        private long minWeight
      • type

        private byte type
      • first

        private boolean first
    • Constructor Detail

      • CompletionTermWriter

        public CompletionTermWriter()
    • Method Detail

      • finish

        public boolean finish​(IndexOutput output)
                       throws java.io.IOException
        Stores the built FST in output Returns true if there was anything stored, false otherwise
        Throws:
        java.io.IOException
      • write

        public void write​(BytesRef term,
                          TermsEnum termsEnum)
                   throws java.io.IOException
        Writes all postings (surface form, weight, document id) for term
        Throws:
        java.io.IOException