Searched refs:comparator (Results 1 – 18 of 18) sorted by relevance
| /leveldb-1.20/db/ |
| H A D | memtable.h | 24 explicit MemTable(const InternalKeyComparator& comparator); 67 const InternalKeyComparator comparator; member 68 explicit KeyComparator(const InternalKeyComparator& c) : comparator(c) { } in KeyComparator()
|
| H A D | memtable.cc | 38 return comparator.Compare(a, b); in operator ()() 125 if (comparator_.comparator.user_comparator()->Compare( in Get()
|
| H A D | repair.cc | 50 icmp_(options.comparator), in Repairer()
|
| H A D | c.cc | 397 opt->rep.comparator = cmp; in leveldb_options_set_comparator()
|
| H A D | db_test.cc | 356 if (last_options_.comparator->Compare(ikey.user_key, user_key) != 0) { in AllEntriesFor() 1413 new_options.comparator = &cmp; in TEST() 1449 new_options.comparator = &cmp; in TEST()
|
| H A D | db_impl.cc | 95 result.comparator = icmp; in SanitizeOptions() 119 internal_comparator_(raw_options.comparator), in DBImpl()
|
| /leveldb-1.20/table/ |
| H A D | table_builder.cc | 80 if (options.comparator != rep_->options.comparator) { in ChangeOptions() 97 assert(r->options.comparator->Compare(key, Slice(r->last_key)) > 0); in Add() 102 r->options.comparator->FindShortestSeparator(&r->last_key, key); in Add() 232 r->options.comparator->FindShortSuccessor(&r->last_key); in Finish()
|
| H A D | merger.h | 22 const Comparator* comparator, Iterator** children, int n);
|
| H A D | block.h | 25 Iterator* NewIterator(const Comparator* comparator);
|
| H A D | table.cc | 208 iter = block->NewIterator(table->rep_->options.comparator); in BlockReader() 222 rep_->index_block->NewIterator(rep_->options.comparator), in NewIterator() 230 Iterator* iiter = rep_->index_block->NewIterator(rep_->options.comparator); in InternalGet() 260 rep_->index_block->NewIterator(rep_->options.comparator); in ApproximateOffsetOf()
|
| H A D | merger.cc | 16 MergingIterator(const Comparator* comparator, Iterator** children, int n) in MergingIterator() argument 17 : comparator_(comparator), in MergingIterator()
|
| H A D | table_test.cc | 249 table_options.comparator = options.comparator; in FinishImpl() 384 options.comparator = comparator_; in NewDB() 451 options_.comparator = &reverse_key_comparator; in Init() 455 constructor_ = new TableConstructor(options_.comparator); in Init() 458 constructor_ = new BlockConstructor(options_.comparator); in Init() 461 constructor_ = new MemTableConstructor(options_.comparator); in Init() 464 constructor_ = new DBConstructor(options_.comparator); in Init() 631 Increment(options_.comparator, &result); in PickRandomKey()
|
| H A D | block.cc | 115 Iter(const Comparator* comparator, in Iter() argument 119 : comparator_(comparator), in Iter()
|
| H A D | block_builder.cc | 78 || options_->comparator->Compare(key, last_key_piece) > 0); in Add()
|
| /leveldb-1.20/util/ |
| H A D | options.cc | 13 : comparator(BytewiseComparator()), in Options()
|
| /leveldb-1.20/include/leveldb/ |
| H A D | options.h | 41 const Comparator* comparator; member
|
| /leveldb-1.20/doc/ |
| H A D | index.md | 8 according to a user-specified comparator function. 248 bytes lexicographically. You can however supply a custom comparator when opening 278 Now create a database using this custom comparator: 285 options.comparator = &cmp; 292 The result of the comparator's Name method is attached to the database when it 303 `TwoPartComparator`), (a) keep the same comparator name (b) increment the 304 version number for new keys (c) change the comparator function so it uses the 417 If you are using a custom comparator, you should ensure that the filter policy 418 you are using is compatible with your comparator. For example, consider a 419 comparator that ignores trailing spaces when comparing keys. [all …]
|
| /leveldb-1.20/ |
| H A D | README.md | 152 * **include/comparator.h**: Abstraction for user-specified comparison function. 154 comparator, but clients can write their own comparator implementations if they
|