Newer
Older
jsclose
committed
#pragma once
#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>
using namespace std;
jsclose
committed
jsclose
committed
//Find occurrences of individual words
jsclose
committed
{
Location First ( ) override;
Location Next ( ) override;
Location NextDocument ( ) override;
Location Seek ( Location target ) override;
Location GetEndDocument ( ) override;
char *term;
char *masterIndex;
vector< size_t > listOfChunks;
vector< WordSeek > wordSeekLookupTable;
size_t currentChunk;
char *currentMemMap;
//set member variables to all of the chunks that occur, update current chunk
void getChunks ( );
Location getCurrentLocation();