Definition at line 181 of file table_test.cc.
§ BlockConstructor() [1/2]
| leveldb::BlockConstructor::BlockConstructor |
( |
const Comparator * |
cmp | ) |
|
|
inlineexplicit |
Definition at line 183 of file table_test.cc.
Constructor(const Comparator *cmp)
const Comparator * comparator_
§ ~BlockConstructor()
| leveldb::BlockConstructor::~BlockConstructor |
( |
| ) |
|
|
inline |
§ BlockConstructor() [2/2]
| leveldb::BlockConstructor::BlockConstructor |
( |
| ) |
|
|
private |
§ FinishImpl()
| virtual Status leveldb::BlockConstructor::FinishImpl |
( |
const Options & |
options, |
|
|
const KVMap & |
data |
|
) |
| |
|
inlinevirtual |
Implements leveldb::Constructor.
Definition at line 190 of file table_test.cc.
193 BlockBuilder builder(&options);
195 for (KVMap::const_iterator it =
data.begin();
198 builder.Add(it->first, it->second);
201 data_ = builder.Finish().ToString();
202 BlockContents contents;
203 contents.data =
data_;
204 contents.cachable =
false;
205 contents.heap_allocated =
false;
206 block_ =
new Block(contents);
virtual const KVMap & data()
§ NewIterator()
| virtual Iterator* leveldb::BlockConstructor::NewIterator |
( |
| ) |
const |
|
inlinevirtual |
§ block_
| Block* leveldb::BlockConstructor::block_ |
|
private |
§ comparator_
| const Comparator* leveldb::BlockConstructor::comparator_ |
|
private |
§ data_
| std::string leveldb::BlockConstructor::data_ |
|
private |
The documentation for this class was generated from the following file: