7 #ifndef STORAGE_LEVELDB_DB_TABLE_CACHE_H_ 8 #define STORAGE_LEVELDB_DB_TABLE_CACHE_H_ 15 #include "port/port.h" 36 Table** tableptr = NULL);
45 void (*handle_result)(
void*,
const Slice&,
const Slice&));
48 void Evict(uint64_t file_number);
61 #endif // STORAGE_LEVELDB_DB_TABLE_CACHE_H_
void Evict(uint64_t file_number)
Status FindTable(uint64_t file_number, uint64_t file_size, Cache::Handle **)
Iterator * NewIterator(const ReadOptions &options, uint64_t file_number, uint64_t file_size, Table **tableptr=NULL)
Status Get(const ReadOptions &options, uint64_t file_number, uint64_t file_size, const Slice &k, void *arg, void(*handle_result)(void *, const Slice &, const Slice &))
const std::string dbname_
TableCache(const std::string &dbname, const Options *options, int entries)