Class MemoryFieldsInvertedIndex

    • Constructor Detail

      • MemoryFieldsInvertedIndex

        public MemoryFieldsInvertedIndex​(Lexicon<java.lang.String> lexicon,
                                         DocumentIndex docindex)
        Constructor.
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class MemoryInvertedIndex
      • add

        public void add​(int termid,
                        int docid,
                        int freq,
                        int[] fields)
        Insert/update posting (docid,freq,(fields)).