Definition at line 221 of file table_test.cc.
§ TableConstructor() [1/2]
| leveldb::TableConstructor::TableConstructor |
( |
const Comparator * |
cmp | ) |
|
|
inline |
Definition at line 223 of file table_test.cc.
Constructor(const Comparator *cmp)
§ ~TableConstructor()
| leveldb::TableConstructor::~TableConstructor |
( |
| ) |
|
|
inline |
§ TableConstructor() [2/2]
| leveldb::TableConstructor::TableConstructor |
( |
| ) |
|
|
private |
§ ApproximateOffsetOf()
| uint64_t leveldb::TableConstructor::ApproximateOffsetOf |
( |
const Slice & |
key | ) |
const |
|
inline |
Definition at line 257 of file table_test.cc.
uint64_t ApproximateOffsetOf(const Slice &key) const
§ FinishImpl()
| virtual Status leveldb::TableConstructor::FinishImpl |
( |
const Options & |
options, |
|
|
const KVMap & |
data |
|
) |
| |
|
inlinevirtual |
Implements leveldb::Constructor.
Definition at line 230 of file table_test.cc.
233 TableBuilder builder(options, &sink);
235 for (KVMap::const_iterator it =
data.begin();
238 builder.Add(it->first, it->second);
241 Status s = builder.Finish();
244 ASSERT_EQ(sink.contents().size(), builder.FileSize());
247 source_ =
new StringSource(sink.contents());
248 Options table_options;
249 table_options.comparator = options.comparator;
static Status Open(const Options &options, RandomAccessFile *file, uint64_t file_size, Table **table)
virtual const KVMap & data()
§ NewIterator()
| virtual Iterator* leveldb::TableConstructor::NewIterator |
( |
| ) |
const |
|
inlinevirtual |
§ Reset()
| void leveldb::TableConstructor::Reset |
( |
| ) |
|
|
inlineprivate |
§ source_
§ table_
| Table* leveldb::TableConstructor::table_ |
|
private |
The documentation for this class was generated from the following file: