Class MemoryDocumentIndexFields

    • Constructor Detail

      • MemoryDocumentIndexFields

        public MemoryDocumentIndexFields()
        Constructor.
    • Method Detail

      • addDocument

        public void addDocument​(int length,
                                int[] flengths)
        Add document length and field lengths to document index.
      • iteratorOverEntries

        public java.util.Iterator<java.util.Map.Entry<java.lang.Integer,​DocumentIndexEntry>> iteratorOverEntries()
        Return an iterator over the document index. iterates over Map.Entry, where the key is the integer docid - only used my the Memory index, not the index-on-disk.
        Overrides:
        iteratorOverEntries in class MemoryDocumentIndex