2011-05-23 21:01:08 +03:00
|
|
|
#include "mph_index.h"
|
2010-10-25 05:12:47 +03:00
|
|
|
|
2011-05-23 21:01:08 +03:00
|
|
|
// String to string map working on mmap'ed memory
|
2010-10-25 05:12:47 +03:00
|
|
|
|
2010-06-28 22:01:18 +03:00
|
|
|
class MPHTable {
|
|
|
|
public:
|
2011-05-23 21:01:08 +03:00
|
|
|
typedef StringPiece key_type;
|
|
|
|
typedef StringPiece data_type;
|
|
|
|
typedef std::pair<StringPiece, StringPiece> value_type;
|
|
|
|
template <class ForwardIterator>
|
2010-09-10 10:07:06 +03:00
|
|
|
bool Reset(ForwardIterator begin, ForwardIterator end);
|
2010-06-28 22:01:18 +03:00
|
|
|
private:
|
2011-05-23 21:01:08 +03:00
|
|
|
char* data_;
|
|
|
|
vector<uint64_t> offsets_;
|
|
|
|
MPHIndex index_;
|
2010-11-05 08:40:15 +02:00
|
|
|
};
|