Skip to content
Snippets Groups Projects
ISREndDoc.h 685 B
Newer Older
  • Learn to ignore specific revisions
  • #include <iostream>
    #include <vector>
    #include <fcntl.h>
    #include <stdio.h>
    #include <string.h>
    #include <unistd.h>
    #include <sys/mman.h>
    #include <sys/stat.h>
    #include <sys/types.h>
    #include "WordSeek.h"
    #include "../util/util.h"
    #include "../indexer/DocumentEnding.h"
    
    class ISREndDoc
    
    vcday's avatar
    vcday committed
    public:
    
    	ISREndDoc();
    	DocumentEnding next();
    	DocumentEnding getCurrentDoc();
    
    vcday's avatar
    vcday committed
    	unsigned GetDocumentLength ( );
    	unsigned GetTitleLength ( );
    
    	string getURL ( );
    private:
    	DocumentEnding currentDoc;
    	char* memMap;
    	int currentChunk;
        int currentFile;
        vector<size_t> getSeekContents();
    
    };