Class RAMStringIndexer


  • @NotThreadSafe
    public class RAMStringIndexer
    extends java.lang.Object
    Indexes strings into an on-heap inverted index to be flushed to an on-disk index later. The flushing process uses the TermsIterator interface to iterate over the indexed terms.
    • Constructor Detail

      • RAMStringIndexer

        public RAMStringIndexer()
    • Method Detail

      • estimatedBytesUsed

        public long estimatedBytesUsed()
      • isEmpty

        public boolean isEmpty()
      • getTermsWithPostings

        public TermsIterator getTermsWithPostings()
        EXPENSIVE OPERATION due to sorting the terms, only call once.
      • add

        public long add​(org.apache.lucene.util.BytesRef term,
                        int segmentRowId)