#include "db/memtable.h"
#include "db/dbformat.h"
#include "leveldb/comparator.h"
#include "leveldb/env.h"
#include "leveldb/iterator.h"
#include "util/coding.h"
namespace leveldb {
static Slice GetLengthPrefixedSlice(const char* data) { … }
MemTable::MemTable(const InternalKeyComparator& comparator)
: … { … }
MemTable::~MemTable() { … }
size_t MemTable::ApproximateMemoryUsage() { … }
int MemTable::KeyComparator::operator()(const char* aptr,
const char* bptr) const { … }
static const char* EncodeKey(std::string* scratch, const Slice& target) { … }
class MemTableIterator : public Iterator { … };
Iterator* MemTable::NewIterator() { … }
void MemTable::Add(SequenceNumber s, ValueType type, const Slice& key,
const Slice& value) { … }
bool MemTable::Get(const LookupKey& key, std::string* value, Status* s) { … }
}